Exemplo n.º 1
0
        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            // Close all maple connections in Players[]

            AccountDialog.Dispose();
            ModifyDialog.Dispose();

            base.Dispose(disposing);

            foreach (Client Player in AccountInfo.Players)
            {
                if (Player != null)
                {
                    Player.MapleConnect.ReceiveLoopThread.Abort();
                }
            }

            System.Windows.Forms.Application.Exit();
        }
Exemplo n.º 2
0
        private void Modify(object obj)
        {
            var dialog = new ModifyDialog((ProcessViewModel)obj);

            dialog.Show();
        }
Exemplo n.º 3
0
 /// <summary>
 /// EventHandler for buttonAccountSettings.Click
 /// Shows ModifyAccount dialog
 /// </summary>
 private void buttonAccountSettings_Click(object sender, EventArgs e)
 {
     ModifyDialog.Show();
 }