亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? sssoundcontrol.cs

?? 飛信的收發使用csharp進行開發
?? CS
?? 第 1 頁 / 共 2 頁
字號:
?namespace Imps.Client.Pc.Options
{
    using Imps.Client;
    using Imps.Client.Core;
    using Imps.Client.Pc;
    using Imps.Client.Pc.Controls;
    using Imps.Client.Resource;
    using Imps.Client.Utils;
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Drawing;
    using System.IO;
    using System.Media;
    using System.Windows.Forms;

    public class SsSoundControl : OptionsControlBase
    {
        private IFrameworkWindow _iFrameworkWnd;
        private NotifyWinodwSetting _ns;
        private Image _playPic = ImpsResources.GetImage("Images.play.png");
        private Dictionary<int, SoundFile> _soundList;
        private CheckBox chkMsgNotify;
        private CheckBox ckEnableSound;
        private DataGridViewImageColumn Column1;
        private DataGridViewTextBoxColumn Column2;
        private DataGridViewButtonColumn Column3;
        private DataGridViewButtonColumn Column4;
        private IContainer components;
        private DataGridView dgvSound;
        private XLabel label1;
        private XLabel lbNotify;
        private XLabel lbPreTip;
        private XLabel lbSound;
        private OpenFileDialog openFileDialogSound;
        private PictureBox pbPreview;
        private RadioButton rbAllNo;
        private RadioButton rbAllYes;
        private RadioButton rbByContact;
        private Imps.Client.Core.SoundSetting ss;
        private XTextBox xtbFilePath;

        public SsSoundControl(IFrameworkWindow iFrameworkWnd)
        {
            this._iFrameworkWnd = iFrameworkWnd;
            this.ss = this._user.Configuration.UserSetting.SoundSetting;
            this._ns = this._user.Configuration.UserSetting.NotifyWinodwSetting;
            this.InitializeComponent();
            this.initSoundList();
            this.initSoundUIList();
            this.handleUiEvent();
            this.pbPreview.Image = ImpsResources.GetImage("Images.play.png");
        }

        public override bool CheckUserInput()
        {
            return true;
        }

        private void ckEnableSound_CheckedChanged(object sender, EventArgs e)
        {
            this.dgvSound.Enabled = this.ckEnableSound.Checked;
            this.xtbFilePath.Enabled = this.ckEnableSound.Checked;
        }

        private void deleteSound(int index)
        {
            this._soundList[index].Path = "";
            this.xtbFilePath.Text = "";
        }

        private void dgvSound_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            string path = this._soundList[e.RowIndex].Path;
            if (path != null)
            {
                this.xtbFilePath.Text = path;
            }
            else
            {
                this.xtbFilePath.Text = "";
            }
        }

        private void dgvSound_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            this.dgvSound.Rows[e.RowIndex].Cells[1].Selected = true;
            if (e.ColumnIndex == 0)
            {
                this.playSound(e.RowIndex);
            }
            if (e.ColumnIndex == 2)
            {
                this.dgvSound.Rows[e.RowIndex].Cells[1].Selected = true;
                if (string.IsNullOrEmpty(this._soundList[e.RowIndex].Path))
                {
                    this._iFrameworkWnd.UnifiedMessageBox.ShowInfo(this, "提示音已為空");
                }
                else if (this._iFrameworkWnd.UnifiedMessageBox.ShowConfirmation(string.Format("您確定要刪除{0}的提示音嗎?", this.dgvSound.Rows[e.RowIndex].Cells[1].Value.ToString())) == DialogResult.Yes)
                {
                    this.deleteSound(e.RowIndex);
                }
            }
            else if (e.ColumnIndex == 3)
            {
                this.modifySound(e.RowIndex);
            }
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void handleUiEvent()
        {
            this.ckEnableSound.CheckedChanged += new EventHandler(this.uiData_Changed);
            this.rbAllNo.CheckedChanged += new EventHandler(this.uiData_Changed);
            this.rbAllYes.CheckedChanged += new EventHandler(this.uiData_Changed);
            this.rbByContact.CheckedChanged += new EventHandler(this.uiData_Changed);
            this.chkMsgNotify.CheckedChanged += new EventHandler(this.uiData_Changed);
            this.xtbFilePath.TextChanged += new EventHandler(this.uiData_Changed);
        }

        private void InitializeComponent()
        {
            DataGridViewCellStyle style = new DataGridViewCellStyle();
            ComponentResourceManager manager = new ComponentResourceManager(typeof(SsSoundControl));
            DataGridViewCellStyle style2 = new DataGridViewCellStyle();
            DataGridViewCellStyle style3 = new DataGridViewCellStyle();
            this.lbSound = new XLabel();
            this.ckEnableSound = new CheckBox();
            this.lbNotify = new XLabel();
            this.chkMsgNotify = new CheckBox();
            this.dgvSound = new DataGridView();
            this.Column1 = new DataGridViewImageColumn();
            this.Column2 = new DataGridViewTextBoxColumn();
            this.Column3 = new DataGridViewButtonColumn();
            this.Column4 = new DataGridViewButtonColumn();
            this.xtbFilePath = new XTextBox();
            this.openFileDialogSound = new OpenFileDialog();
            this.rbAllYes = new RadioButton();
            this.rbAllNo = new RadioButton();
            this.rbByContact = new RadioButton();
            this.label1 = new XLabel();
            this.pbPreview = new PictureBox();
            this.lbPreTip = new XLabel();
            XLabel label = new XLabel();
            XLabel label2 = new XLabel();
            ((ISupportInitialize) this.dgvSound).BeginInit();
            ((ISupportInitialize) this.pbPreview).BeginInit();
            base.SuspendLayout();
            label.AutoEllipsis = false;
            label.BorderColor = Color.Black;
            label.BorderStyle = BorderStyle.Fixed3D;
            label.ButtonBorderStyle = ButtonBorderStyle.Solid;
            label.Location = new Point(0x41, 15);
            label.Name = "lbLine";
            label.Size = new Size(280, 2);
            label.TabIndex = 1;
            label.TextAlign = ContentAlignment.TopLeft;
            label.UseMnemonic = false;
            label2.AutoEllipsis = false;
            label2.BorderColor = Color.Black;
            label2.BorderStyle = BorderStyle.Fixed3D;
            label2.ButtonBorderStyle = ButtonBorderStyle.Solid;
            label2.Location = new Point(0x27, 0xd7);
            label2.Name = "lbLine2";
            label2.Size = new Size(0x13d, 2);
            label2.TabIndex = 6;
            label2.TextAlign = ContentAlignment.TopLeft;
            label2.UseMnemonic = false;
            this.lbSound.AutoEllipsis = false;
            this.lbSound.AutoSize = true;
            this.lbSound.BorderColor = Color.Black;
            this.lbSound.BorderStyle = BorderStyle.None;
            this.lbSound.ButtonBorderStyle = ButtonBorderStyle.Solid;
            this.lbSound.Location = new Point(5, 9);
            this.lbSound.Name = "lbSound";
            this.lbSound.Size = new Size(0x38, 14);
            this.lbSound.TabIndex = 0;
            this.lbSound.Text = "聲音設定";
            this.lbSound.TextAlign = ContentAlignment.TopLeft;
            this.lbSound.UseMnemonic = false;
            this.ckEnableSound.AutoSize = true;
            this.ckEnableSound.Location = new Point(0x13, 0x1f);
            this.ckEnableSound.Name = "ckEnableSound";
            this.ckEnableSound.Size = new Size(0x71, 0x11);
            this.ckEnableSound.TabIndex = 2;
            this.ckEnableSound.Text = "啟用提示音(點擊";
            this.ckEnableSound.UseVisualStyleBackColor = true;
            this.ckEnableSound.CheckedChanged += new EventHandler(this.ckEnableSound_CheckedChanged);
            this.lbNotify.AutoEllipsis = false;
            this.lbNotify.AutoSize = true;
            this.lbNotify.BorderColor = Color.Black;
            this.lbNotify.BorderStyle = BorderStyle.None;
            this.lbNotify.ButtonBorderStyle = ButtonBorderStyle.Solid;
            this.lbNotify.Location = new Point(5, 0xd0);
            this.lbNotify.Name = "lbNotify";
            this.lbNotify.Size = new Size(0x1f, 14);
            this.lbNotify.TabIndex = 5;
            this.lbNotify.Text = "通知";
            this.lbNotify.TextAlign = ContentAlignment.TopLeft;
            this.lbNotify.UseMnemonic = false;
            this.chkMsgNotify.AutoSize = true;
            this.chkMsgNotify.Location = new Point(0x10, 0x149);
            this.chkMsgNotify.Name = "chkMsgNotify";
            this.chkMsgNotify.Size = new Size(0x92, 0x11);
            this.chkMsgNotify.TabIndex = 11;
            this.chkMsgNotify.Text = "新消息到達時顯示通知";
            this.chkMsgNotify.UseVisualStyleBackColor = true;
            this.dgvSound.AllowUserToAddRows = false;
            this.dgvSound.AllowUserToDeleteRows = false;
            this.dgvSound.AllowUserToResizeColumns = false;
            this.dgvSound.AllowUserToResizeRows = false;
            this.dgvSound.BackgroundColor = SystemColors.Window;
            this.dgvSound.ColumnHeadersBorderStyle = DataGridViewHeaderBorderStyle.Single;
            this.dgvSound.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
            this.dgvSound.ColumnHeadersVisible = false;
            this.dgvSound.Columns.AddRange(new DataGridViewColumn[] { this.Column1, this.Column2, this.Column3, this.Column4 });
            this.dgvSound.GridColor = SystemColors.Window;
            this.dgvSound.Location = new Point(0x13, 0x36);
            this.dgvSound.MultiSelect = false;
            this.dgvSound.Name = "dgvSound";
            this.dgvSound.ReadOnly = true;
            this.dgvSound.RowHeadersBorderStyle = DataGridViewHeaderBorderStyle.None;
            this.dgvSound.RowHeadersVisible = false;
            this.dgvSound.RowTemplate.Height = 0x17;
            this.dgvSound.Size = new Size(0x147, 0x70);
            this.dgvSound.TabIndex = 3;
            this.dgvSound.CellClick += new DataGridViewCellEventHandler(this.dgvSound_CellClick);
            this.dgvSound.CellContentClick += new DataGridViewCellEventHandler(this.dgvSound_CellContentClick);
            style.Alignment = DataGridViewContentAlignment.MiddleCenter;
            style.NullValue = manager.GetObject("dataGridViewCellStyle7.NullValue");
            style.SelectionBackColor = SystemColors.Window;
            style.SelectionForeColor = SystemColors.Window;
            this.Column1.DefaultCellStyle = style;
            this.Column1.Frozen = true;
            this.Column1.HeaderText = "";
            this.Column1.MinimumWidth = 40;
            this.Column1.Name = "Column1";
            this.Column1.ReadOnly = true;
            this.Column1.Resizable = DataGridViewTriState.False;
            this.Column1.ToolTipText = "點擊這里試聽您所設定的聲音!";
            this.Column1.Width = 40;
            this.Column2.Frozen = true;
            this.Column2.HeaderText = "";
            this.Column2.MaxInputLength = 100;
            this.Column2.Name = "Column2";
            this.Column2.ReadOnly = true;
            this.Column2.Resizable = DataGridViewTriState.False;
            this.Column2.SortMode = DataGridViewColumnSortMode.NotSortable;
            this.Column2.Width = 0xa5;
            style2.Alignment = DataGridViewContentAlignment.MiddleCenter;
            style2.SelectionBackColor = Color.Transparent;
            style2.SelectionForeColor = Color.Transparent;
            this.Column3.DefaultCellStyle = style2;
            this.Column3.Frozen = true;
            this.Column3.HeaderText = "";
            this.Column3.Name = "Column3";
            this.Column3.ReadOnly = true;
            this.Column3.Resizable = DataGridViewTriState.False;
            this.Column3.Width = 60;
            style3.Alignment = DataGridViewContentAlignment.MiddleCenter;
            style3.SelectionBackColor = Color.Transparent;
            style3.SelectionForeColor = Color.Transparent;
            this.Column4.DefaultCellStyle = style3;
            this.Column4.Frozen = true;
            this.Column4.HeaderText = "";
            this.Column4.Name = "Column4";
            this.Column4.ReadOnly = true;
            this.Column4.Resizable = DataGridViewTriState.False;
            this.Column4.Width = 60;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲欧美一区二区久久| 狠狠色狠狠色合久久伊人| 久久精品国内一区二区三区| 成人福利视频网站| 日韩午夜电影av| 一区二区高清免费观看影视大全| 九九**精品视频免费播放| 日本高清成人免费播放| 久久―日本道色综合久久| 首页国产欧美久久| 91免费观看国产| 中文在线资源观看网站视频免费不卡 | 欧美一区二区视频网站| 亚洲精品免费一二三区| 大尺度一区二区| 国产片一区二区| 久草这里只有精品视频| 欧美一区二区三区人| 亚洲国产成人av网| 色成人在线视频| 一区二区三区在线视频免费观看| 国产成人aaa| 国产三级欧美三级日产三级99| 蜜臀av性久久久久av蜜臀妖精| 欧美日韩国产欧美日美国产精品| 亚洲乱码国产乱码精品精小说| 不卡区在线中文字幕| 日本一区二区三区免费乱视频| 国产在线播放一区| 久久网这里都是精品| 国产曰批免费观看久久久| 日韩欧美不卡在线观看视频| 奇米亚洲午夜久久精品| 日韩欧美高清一区| 激情综合色综合久久综合| 久久婷婷色综合| 国产黄色精品网站| 国产精品欧美一区二区三区| 丁香啪啪综合成人亚洲小说| 中文字幕中文字幕在线一区| 99re这里都是精品| 亚洲一区中文日韩| 在线不卡一区二区| 久久超级碰视频| 久久久久久电影| 色综合久久综合网97色综合| 亚洲一区二区三区精品在线| 91精品国产综合久久精品麻豆| 美美哒免费高清在线观看视频一区二区 | 欧美日韩国产高清一区二区 | 99久精品国产| 亚洲精品高清在线| 欧美精品自拍偷拍| 国产综合色视频| 国产精品黄色在线观看| 91国偷自产一区二区三区观看 | 欧美乱妇23p| 国产一区二区调教| 久久精品人人爽人人爽| 91久久人澡人人添人人爽欧美| 亚洲不卡av一区二区三区| 欧美一级国产精品| 成人av动漫在线| 日韩有码一区二区三区| 国产日韩欧美综合在线| 91免费观看视频在线| 美日韩一区二区| 亚洲品质自拍视频| 在线观看国产日韩| 国产欧美一区二区三区在线看蜜臀| 成人小视频免费观看| 视频一区视频二区中文| 国产精品久线观看视频| 欧美酷刑日本凌虐凌虐| 成人在线一区二区三区| 天天综合色天天综合| 国产精品伦理一区二区| 91精品久久久久久久久99蜜臂| 国产91丝袜在线播放| 午夜精品免费在线| 国产精品剧情在线亚洲| 精品久久久久久亚洲综合网 | 国产成人99久久亚洲综合精品| 亚洲电影在线播放| 久久亚洲精华国产精华液 | 一本一道久久a久久精品| 日本欧美大码aⅴ在线播放| 亚洲手机成人高清视频| 国产亚洲欧洲一区高清在线观看| 欧美日韩免费在线视频| 91在线视频播放| 国产电影精品久久禁18| 亚洲.国产.中文慕字在线| 国产精品高潮久久久久无| 337p日本欧洲亚洲大胆精品| 91.xcao| 欧美视频你懂的| 在线中文字幕不卡| 99精品久久免费看蜜臀剧情介绍| 国产一区二区三区在线观看免费| 日韩精品亚洲一区二区三区免费| 亚洲天堂精品在线观看| 中文av一区二区| 国产欧美一区二区三区在线老狼| 日韩视频一区二区三区在线播放| 欧美日韩三级一区| 色88888久久久久久影院野外| 成人性视频免费网站| 国产一区免费电影| 蜜桃av一区二区三区| 青青国产91久久久久久| 日韩国产在线一| 午夜不卡av在线| 午夜久久久久久久久| 亚洲va欧美va国产va天堂影院| 一区二区三国产精华液| 一卡二卡三卡日韩欧美| 亚洲高清不卡在线观看| 亚洲国产综合91精品麻豆| 亚洲一线二线三线视频| 午夜视频在线观看一区二区三区 | 精品视频999| 欧美精品一二三| 欧美成人性福生活免费看| 337p日本欧洲亚洲大胆色噜噜| 国产日韩欧美一区二区三区综合| 欧美国产日韩精品免费观看| 国产精品理伦片| 亚洲欧美日韩中文播放| 亚洲一区自拍偷拍| 久久国产尿小便嘘嘘| 国产成人精品亚洲777人妖| 成人av在线影院| 在线一区二区三区四区| 欧美剧情电影在线观看完整版免费励志电影| 欧美日本乱大交xxxxx| 日韩美女视频在线| 中文字幕av在线一区二区三区| 国产精品午夜在线观看| 亚洲制服欧美中文字幕中文字幕| 日韩中文字幕区一区有砖一区| 久久成人免费电影| www.激情成人| 欧美一区二区三区四区视频| 精品久久五月天| 亚洲色图视频网站| 强制捆绑调教一区二区| 国产福利一区二区三区视频| 在线观看亚洲专区| 日韩欧美综合一区| 1024成人网| 免费的成人av| 成人app下载| 91精品国产品国语在线不卡| 久久久久国色av免费看影院| 亚洲视频 欧洲视频| 久久99精品国产| 在线观看日韩电影| 国产午夜精品一区二区三区视频 | 一区二区三区免费在线观看| 蜜臀精品久久久久久蜜臀| 成人av在线一区二区| 精品久久久影院| 亚洲在线观看免费视频| 国产麻豆精品95视频| 欧美裸体一区二区三区| 亚洲欧美日韩国产手机在线| 久久丁香综合五月国产三级网站| 色综合天天综合网天天狠天天| 欧美xingq一区二区| 亚洲激情自拍偷拍| 岛国精品在线播放| 日韩免费高清av| 亚洲成人免费在线| 成人精品视频一区二区三区尤物| 日韩一区二区三免费高清| 一区二区三区四区精品在线视频| 国产成人在线观看免费网站| 91精品国产aⅴ一区二区| 一区二区三区四区乱视频| 91在线国内视频| 欧美国产精品一区二区三区| 久久9热精品视频| 56国语精品自产拍在线观看| 亚洲欧美日本在线| 成人avav在线| 亚洲国产精品精华液ab| 国产91在线观看| 久久久久国产精品厨房| 卡一卡二国产精品 | 国产xxx精品视频大全| 91麻豆精品国产91久久久久久| 亚洲综合小说图片| 91老师国产黑色丝袜在线| 亚洲欧美中日韩| 成人一区二区视频| 国产精品色在线| 成人h版在线观看| 最近中文字幕一区二区三区| av成人老司机|