Beispiel #1
0
        private void SaveAndDispose()
        {
            try
            {
                int newRows = (String.IsNullOrEmpty(Rows_Input.Text)) ? 1 : Convert.ToInt32(Rows_Input.Text);
                int newCols = (String.IsNullOrEmpty(Columns_Input.Text)) ? 1 : Convert.ToInt32(Columns_Input.Text);

                SettingsUpdateArgs args = new SettingsUpdateArgs(newRows, newCols);
                SettingsUpdated(this, args);
                this.Dispose();
            }
            catch (Exception AddNewException)
            {
                MessageBox.Show(AddNewException.Message);
            }
        }
Beispiel #2
0
 void NewSettings(object sender, SettingsUpdateArgs e)
 {
     AttemptedRows = e.Rows;
     AttemptedCols = e.Cols;
 }