コード例 #1
0
ファイル: MainForm.cs プロジェクト: xydoublez/GGTalk-V5.5
        private INDiskOutter nDiskOutter; // V2.0

        #region Ctor
        public MainForm()
        {
            InitializeComponent();
            this.autoDocker1.Initialize(this);

            this.toolStripSplitButton_Friends.Visible = true;
            this.添加好友toolStripMenuItem.Visible        = true;
            this.查找好友ToolStripMenuItem.Visible        = true;
            this.头像显示ToolStripMenuItem.Visible        = true;

            UiSafeInvoker invoker = new UiSafeInvoker(this, true, true, GlobalResourceManager.Logger);

            GlobalResourceManager.SetUiSafeInvoker(invoker);

            this.toolstripButton_mainMenu.Image = GlobalResourceManager.Png64;

            this.friendListBox1.AddCatalogClicked        += new CbGeneric(friendListBox1_AddCatalogClicked);
            this.friendListBox1.ChangeCatalogNameClicked += new CbGeneric <string>(friendListBox1_ChangeCatalogNameClicked);
            this.friendListBox1.UserDoubleClicked        += new CbGeneric <IUser>(friendListBox1_UserDoubleClicked);
            this.friendListBox1.RemoveUserClicked        += new CbGeneric <IUser>(friendListBox1_RemoveUserClicked);
            this.friendListBox1.ChatRecordClicked        += new CbGeneric <IUser>(friendListBox1_ChatRecordClicked);
            this.friendListBox1.CatalogAdded             += new CbGeneric <string>(friendListBox1_CatalogAdded);
            this.friendListBox1.CatalogNameChanged       += new CbGeneric <string, string, bool>(friendListBox1_CatalogNameChanged);
            this.friendListBox1.CatalogRemoved           += new CbGeneric <string>(friendListBox1_CatalogRemoved);
            this.friendListBox1.FriendCatalogMoved       += new CbGeneric <string, string, string>(friendListBox1_FriendCatalogMoved);
            this.recentListBox1.UnitDoubleClicked        += new CbGeneric <string, bool>(recentListBox1_UserDoubleClicked);
            this.recentListBox1.ChatRecordClicked        += new CbGeneric <string, bool>(recentListBox1_ChatRecordClicked);
            this.groupListBox.GroupDoubleClicked         += new CbGeneric <IGroup>(groupListBox_GroupDoubleClicked);
            this.groupListBox.DismissGroupClicked        += new CbGeneric <IGroup>(groupListBox_DismissGroupClicked);
            this.groupListBox.QuitGroupClicked           += new CbGeneric <IGroup>(groupListBox_QuitGroupClicked);
            this.groupListBox.ChatRecordClicked          += new CbGeneric <IGroup>(groupListBox_ChatRecordClicked);
        }
コード例 #2
0
        public void Initialize(IUser current, Dictionary <UserStatus, Image> statusImage, ESBasic.Loggers.IAgileLogger logger)
        {
            this.currentUser = current;
            this.invoker     = new UiSafeInvoker(this, true, true, logger);

            //Online = 2,
            //Away = 3,
            //Busy = 4,
            //DontDisturb = 5,
            //OffLine = 6,
            //Hide = 7

            // 索引处的状态位置 0-公司,1-部门,2-无,3-在线用户
            this.imageList1.Images.Add(this.CombineStateImage(this.imageList1.Images[3], statusImage[UserStatus.Away]));
            this.imageList1.Images.Add(this.CombineStateImage(this.imageList1.Images[3], statusImage[UserStatus.Busy]));
            this.imageList1.Images.Add(this.CombineStateImage(this.imageList1.Images[3], statusImage[UserStatus.DontDisturb]));
            this.imageList1.Images.Add(ESBasic.Helpers.ImageHelper.ConvertToGrey(this.imageList1.Images[3]));
            this.imageList1.Images.Add(ESBasic.Helpers.ImageHelper.ConvertToGrey(this.imageList1.Images[3]));
        }
コード例 #3
0
ファイル: MainForm.cs プロジェクト: GamesDesignArt/GGTalk
        public MainForm()
        {
            InitializeComponent();
            this.autoDocker1.Initialize(this);

            this.toolStripSplitButton_Friends.Visible = true;
            this.添加好友toolStripMenuItem.Visible = true;
            this.查找好友ToolStripMenuItem.Visible = true;
            this.头像显示ToolStripMenuItem.Visible = true;

            UiSafeInvoker invoker = new UiSafeInvoker(this, true,true, GlobalResourceManager.Logger);
            GlobalResourceManager.SetUiSafeInvoker(invoker);

            this.toolstripButton_mainMenu.Image = GlobalResourceManager.Png64;

            this.friendListBox1.AddCatalogClicked += new CbGeneric(friendListBox1_AddCatalogClicked);
            this.friendListBox1.ChangeCatalogNameClicked += new CbGeneric<string>(friendListBox1_ChangeCatalogNameClicked);
            this.friendListBox1.UserDoubleClicked +=new CbGeneric<IUser>(friendListBox1_UserDoubleClicked);
            this.friendListBox1.RemoveUserClicked += new CbGeneric<IUser>(friendListBox1_RemoveUserClicked);
            this.friendListBox1.ChatRecordClicked += new CbGeneric<IUser>(friendListBox1_ChatRecordClicked);
            this.friendListBox1.CatalogAdded += new CbGeneric<string>(friendListBox1_CatalogAdded);
            this.friendListBox1.CatalogNameChanged += new CbGeneric<string, string, bool>(friendListBox1_CatalogNameChanged);
            this.friendListBox1.CatalogRemoved += new CbGeneric<string>(friendListBox1_CatalogRemoved);
            this.friendListBox1.FriendCatalogMoved += new CbGeneric<string, string ,string >(friendListBox1_FriendCatalogMoved);
            this.recentListBox1.UnitDoubleClicked += new CbGeneric<string, bool>(recentListBox1_UserDoubleClicked);
            this.recentListBox1.ChatRecordClicked += new CbGeneric<string, bool>(recentListBox1_ChatRecordClicked);
            this.groupListBox.GroupDoubleClicked += new CbGeneric<IGroup>(groupListBox_GroupDoubleClicked);
            this.groupListBox.DismissGroupClicked += new CbGeneric<IGroup>(groupListBox_DismissGroupClicked);
            this.groupListBox.QuitGroupClicked += new CbGeneric<IGroup>(groupListBox_QuitGroupClicked);
            this.groupListBox.ChatRecordClicked += new CbGeneric<IGroup>(groupListBox_ChatRecordClicked);
        }
コード例 #4
0
 public static void SetUiSafeInvoker(UiSafeInvoker invoker)
 {
     GlobalResourceManager.uiSafeInvoker = invoker;
 }
コード例 #5
0
ファイル: OrgView.cs プロジェクト: GamesDesignArt/GGTalk
        public void Initialize(IUser current ,Dictionary<UserStatus, Image> statusImage ,ESBasic.Loggers.IAgileLogger logger)
        {
            this.currentUser = current;
            this.invoker = new UiSafeInvoker(this, true, true, logger);

            //Online = 2,
            //Away = 3,
            //Busy = 4,
            //DontDisturb = 5,
            //OffLine = 6,
            //Hide = 7

            // 索引处的状态位置 0-公司,1-部门,2-无,3-在线用户
            this.imageList1.Images.Add(this.CombineStateImage(this.imageList1.Images[3], statusImage[UserStatus.Away]));
            this.imageList1.Images.Add(this.CombineStateImage(this.imageList1.Images[3], statusImage[UserStatus.Busy]));
            this.imageList1.Images.Add(this.CombineStateImage(this.imageList1.Images[3], statusImage[UserStatus.DontDisturb]));
            this.imageList1.Images.Add(ESBasic.Helpers.ImageHelper.ConvertToGrey(this.imageList1.Images[3]));
            this.imageList1.Images.Add(ESBasic.Helpers.ImageHelper.ConvertToGrey(this.imageList1.Images[3]));
        }
コード例 #6
0
 public static void SetUiSafeInvoker(UiSafeInvoker invoker)
 {
     GlobalResourceManager.uiSafeInvoker = invoker;
 }