예제 #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();
        }
예제 #2
0
        private void Modify(object obj)
        {
            var dialog = new ModifyDialog((ProcessViewModel)obj);

            dialog.Show();
        }
예제 #3
0
파일: MainForm.cs 프로젝트: dasdsad/ms-wind
 /// <summary>
 /// EventHandler for buttonAccountSettings.Click
 /// Shows ModifyAccount dialog
 /// </summary>
 private void buttonAccountSettings_Click(object sender, EventArgs e)
 {
     ModifyDialog.Show();
 }