コード例 #1
0
ファイル: ClientWindow.xaml.cs プロジェクト: Earu/Fuse
 internal ClientWindow(FuseClient client)
 {
     this.InitializeComponent();
     this._Client = client;
     this._TypingTimer.AutoReset = false;
     this._TypingTimer.Elapsed  += (s, e) => this._Client.RunOnSTA(() => this.HideTyping());
 }
コード例 #2
0
ファイル: 2FACWindow.xaml.cs プロジェクト: Earu/Fuse
 internal _2FACWindow(FuseClient client, string user, string pass, bool isphone = true)
 {
     this.InitializeComponent();
     this.TBCode.Focus();
     this._Client   = client;
     this._Username = user;
     this._Password = pass;
     this._IsPhone  = isphone;
 }
コード例 #3
0
ファイル: LoginWindow.xaml.cs プロジェクト: Earu/Fuse
        internal LoginWindow(FuseClient client)
        {
            this.InitializeComponent();
            this._Client = client;
            this.TBUserName.Focus();

            if (!MainDefined)
            {
                this.IsMain = true;
                MainDefined = true;
            }
            else
            {
                this.IsMain = false;
            }
        }
コード例 #4
0
ファイル: FriendRequestWindow.xaml.cs プロジェクト: Earu/Fuse
        internal FriendRequestWindow(FuseClient client)
        {
            this._Client = client;
            this._User   = client.User;
            this._UI     = client.UI;

            this.InitializeComponent();

            _Opened        = true;
            _CurrentWindow = this;
            this.Closing  += this.OnClose;

            foreach (KeyValuePair <uint, User> u in this._User.Requesteds)
            {
                FriendRequestControl ctrl = new FriendRequestControl(u.Value, this._User);
                ctrl.Update();
                this.ICRequests.Items.Add(ctrl);
            }
        }
コード例 #5
0
 internal FriendControl(FuseClient client, User friend)
 {
     this.InitializeComponent();
     this._Friend = friend;
     this._Client = client;
 }