Exemplo n.º 1
0
 internal ClientWindow(FuseClient client)
 {
     this.InitializeComponent();
     this._Client = client;
     this._TypingTimer.AutoReset = false;
     this._TypingTimer.Elapsed  += (s, e) => this._Client.RunOnSTA(() => this.HideTyping());
 }
Exemplo n.º 2
0
 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;
 }
Exemplo n.º 3
0
        internal LoginWindow(FuseClient client)
        {
            this.InitializeComponent();
            this._Client = client;
            this.TBUserName.Focus();

            if (!MainDefined)
            {
                this.IsMain = true;
                MainDefined = true;
            }
            else
            {
                this.IsMain = false;
            }
        }
Exemplo n.º 4
0
        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);
            }
        }
Exemplo n.º 5
0
 internal FriendControl(FuseClient client, User friend)
 {
     this.InitializeComponent();
     this._Friend = friend;
     this._Client = client;
 }