Наследование: Xwt.Dialog
Пример #1
0
        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();
        }
Пример #2
0
        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();
        }
Пример #3
0
        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();
        }
Пример #4
0
        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();
        }