Exemplo n.º 1
0
 void btnCredits_Click(object sender, SdlDotNet.Widgets.MouseButtonEventArgs e)
 {
     this.Close();
     WindowManager.FindWindow("winUpdates").Close();
     WindowManager.FindWindow("winLogin").Close();
     WindowSwitcher.AddWindow(new winCredits());
 }
Exemplo n.º 2
0
        void lblDelete_Click(object sender, SdlDotNet.Widgets.MouseButtonEventArgs e)
        {
            string account  = txtName.Text;
            string password = txtPassword.Text;

            if (NetworkManager.TcpClient.Socket.Connected)
            {
                Messenger.SendDeleteAccount(account, password);
                this.Close();
                WindowSwitcher.AddWindow(new winLoading());
                ((Windows.winLoading)WindowManager.FindWindow("winLoading")).UpdateLoadText("Deleting account...");
            }
            else
            {
                this.Close();
                WindowSwitcher.ShowMainMenu();
                SdlDotNet.Widgets.MessageBox.Show("You are not connected to the Server!", "----");
            }
        }