亚洲欧美第一页_禁久久精品乱码_粉嫩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在线资源网| 欧美日韩国产影片| 日本一区二区不卡视频| 日日摸夜夜添夜夜添精品视频| 国产美女精品在线| 6080国产精品一区二区| 亚洲美女屁股眼交| 国产91丝袜在线观看| 欧美大片在线观看| 五月天亚洲婷婷| 欧美在线免费视屏| 日韩久久一区二区| 成人丝袜高跟foot| 久久久久九九视频| 久久激情五月婷婷| 欧美一级理论性理论a| 亚洲激情综合网| a级高清视频欧美日韩| 国产喂奶挤奶一区二区三区| 久草这里只有精品视频| 91 com成人网| 日韩制服丝袜先锋影音| 欧美日韩一区不卡| 一区二区三区在线观看国产| 99久久er热在这里只有精品15| 久久久国产午夜精品| 韩国视频一区二区| 久久网这里都是精品| 激情av综合网| 337p粉嫩大胆噜噜噜噜噜91av| 国内国产精品久久| 亚洲精品在线网站| 国产成人aaa| 国产精品天干天干在线综合| 成人涩涩免费视频| 17c精品麻豆一区二区免费| 99久久久久久| 亚洲一区二区三区中文字幕 | 777奇米四色成人影色区| 亚洲麻豆国产自偷在线| 欧美综合亚洲图片综合区| 亚洲一区在线观看免费 | 亚洲综合色网站| 91传媒视频在线播放| 亚洲成在人线免费| 日韩一区二区三区精品视频| 极品少妇一区二区| 欧美国产禁国产网站cc| 色综合网色综合| 婷婷国产v国产偷v亚洲高清| 精品国产污污免费网站入口| 韩国三级电影一区二区| 中文字幕第一页久久| 91国偷自产一区二区三区观看| 亚洲午夜久久久久久久久电影网| 在线综合亚洲欧美在线视频| 精品在线观看视频| 成人免费在线播放视频| 欧美日韩国产三级| 国产呦精品一区二区三区网站| 亚洲色图在线播放| 91精品国产色综合久久不卡电影| 国产一区在线精品| 一区二区三区四区视频精品免费| 日韩手机在线导航| 99久久综合色| 麻豆中文一区二区| 亚洲欧美韩国综合色| 精品电影一区二区三区| 色视频一区二区| 国内精品伊人久久久久av一坑| 日韩码欧中文字| 久久亚洲综合色一区二区三区| 色诱亚洲精品久久久久久| 久久精品国产精品亚洲精品| 亚洲日本在线视频观看| 久久影院午夜片一区| 欧美亚洲另类激情小说| 国产一区二区三区综合| 午夜成人免费视频| 国产精品三级av| 精品国产免费人成电影在线观看四季| 99免费精品在线观看| 国产一区二区主播在线| 亚洲成人中文在线| 日韩美女视频一区二区 | 国产美女在线精品| 三级欧美韩日大片在线看| 国产精品久久久久久福利一牛影视 | 国内精品视频666| 亚洲成人一区二区在线观看| 国产精品短视频| 国产午夜精品一区二区三区四区| 91精品国产综合久久香蕉的特点| 日本道在线观看一区二区| 国产一区二区精品久久99| 日韩精品电影在线| 午夜精品免费在线观看| 一区二区三区在线观看动漫| |精品福利一区二区三区| 国产欧美一区二区三区鸳鸯浴| 日韩你懂的在线播放| 欧美一区二区三级| 欧美久久久久久久久| 欧美日免费三级在线| 91久久精品午夜一区二区| 91在线porny国产在线看| 成人综合在线观看| 成人午夜大片免费观看| 国产成人av影院| 国产91丝袜在线观看| 成人深夜福利app| 成人app网站| 91在线国产福利| 97久久人人超碰| 色网综合在线观看| 欧美中文字幕久久| 欧美日韩一区二区三区在线| 欧美唯美清纯偷拍| 欧美日韩免费高清一区色橹橹| 欧美日韩欧美一区二区| 51精品秘密在线观看| 日韩一级视频免费观看在线| 日韩视频在线观看一区二区| 亚洲精品在线一区二区| 国产精品少妇自拍| 亚洲视频中文字幕| 亚洲国产精品自拍| 蜜臀久久久久久久| 国产精品小仙女| 成人黄色国产精品网站大全在线免费观看| 成人一区二区三区中文字幕| 99久久婷婷国产精品综合| 在线免费不卡电影| 日韩一级黄色片| 国产欧美一区视频| 亚洲伊人伊色伊影伊综合网| 日韩av电影免费观看高清完整版| 久久99精品久久久| 成人av资源网站| 欧美人与z0zoxxxx视频| 久久综合国产精品| 亚洲激情五月婷婷| 免费在线视频一区| 成人夜色视频网站在线观看| 色综合久久久久久久久久久| 欧美一区二区三区在线视频| 国产视频一区二区三区在线观看| 亚洲精品高清视频在线观看| 日本不卡不码高清免费观看| 国产成人免费xxxxxxxx| 欧美色爱综合网| 久久蜜桃一区二区| 亚洲已满18点击进入久久| 国产一区二区在线视频| 欧美日韩中文字幕一区二区| 国产欧美日韩激情| 性做久久久久久免费观看| 国产精品99久久久久久久vr| 欧美丝袜第三区| 国产午夜精品一区二区 | 亚洲美女电影在线| 国产精品一区久久久久| 欧美日韩一区中文字幕| 国产亚洲美州欧州综合国| 亚洲国产成人av好男人在线观看| 国产不卡在线视频| 这里只有精品免费| 亚洲精品久久嫩草网站秘色| 国产传媒欧美日韩成人| 制服丝袜在线91| 亚洲免费色视频| bt欧美亚洲午夜电影天堂| www激情久久| 日韩1区2区日韩1区2区| 精品视频一区二区不卡| 久久综合一区二区| 天天色综合天天| 在线观看成人免费视频| 中文字幕中文乱码欧美一区二区| 久久99热国产| 91精品国产综合久久久久久久久久 | 国产婷婷色一区二区三区四区| 天堂在线亚洲视频| 欧美亚日韩国产aⅴ精品中极品| 亚洲国产精品二十页| 国产乱淫av一区二区三区| 日韩一二在线观看| 午夜精品福利在线| 欧美日韩国产高清一区| 亚洲大尺度视频在线观看| 在线观看免费视频综合| 亚洲韩国精品一区| 在线观看不卡一区| 亚洲午夜在线电影| 欧美色国产精品| 天天操天天色综合| 日韩三级高清在线|