/// <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(); }
private void Modify(object obj) { var dialog = new ModifyDialog((ProcessViewModel)obj); dialog.Show(); }
/// <summary> /// EventHandler for buttonAccountSettings.Click /// Shows ModifyAccount dialog /// </summary> private void buttonAccountSettings_Click(object sender, EventArgs e) { ModifyDialog.Show(); }