protected void Button_plus_Clicked(object sender, EventArgs args) { var dialog = new CharDialog(this.ParentWindow.Icon, (char)32, (char)126); dialog.TransientFor = this.ParentWindow; if (dialog.Run() == Command.Ok) { char start, end; dialog.char1.GetCurrentChar(out start); dialog.char2.GetCurrentChar(out end); SetListValues(listStore.AddRow(), start, end); RefreshButtons(); } dialog.Dispose(); }
private void EditRow(int row) { int s = GetListValue(listStore.GetValue(row, startCol)); int e = GetListValue(listStore.GetValue(row, endCol)); var dialog = new CharDialog(this.ParentWindow.Icon, (char)s, (char)e); dialog.TransientFor = this.ParentWindow; if (dialog.Run() == Command.Ok) { char start, end; dialog.char1.GetCurrentChar(out start); dialog.char2.GetCurrentChar(out end); SetListValues(row, start, end); } dialog.Dispose(); }