private void TabClosing() { if (_hasChanges) { DataLossWarningCloseDlg warn = new DataLossWarningCloseDlg(); warn.ShowDialog(); if (warn.DialogResult == System.Windows.Forms.DialogResult.OK) CloseCommand.Execute(this); ; } }
private void TabClosing() { if (_hasChanges) { DataLossWarningCloseDlg warn = new DataLossWarningCloseDlg(); warn.ShowDialog(); if (warn.DialogResult == System.Windows.Forms.DialogResult.OK) CloseCommand.Execute(this); ; } }