示例#1
0
        private void btnEditCreator_Click(object sender, EventArgs e)
        {
            ZDialog.TextInputDialog tin = new ZDialog.TextInputDialog(ViewUtil.FormatDialogTitle(Localization.Messages.Dialog_EditBoxAuthor_Title),
                                                                      Localization.Messages.Dialog_EditBoxAuthor_Message, cBox.creator);
            string result = tin.ShowDialogAndFetchInput(this);

            if (result == null)
            {
                return;
            }
            cBox.creator = result;
            boxInfoUpdated();
        }
示例#2
0
        private void btnEditBoxName_Click(object sender, EventArgs e)
        {
            ZDialog.TextInputDialog tin = new ZDialog.TextInputDialog(ViewUtil.FormatDialogTitle(Localization.Messages.Dialog_EditBoxTitle_Title),
                                                                      Localization.Messages.Dialog_EditBoxTitle_Message, cBox.title);
            string result = tin.ShowDialogAndFetchInput(this);

            if (result == null)
            {
                return;
            }
            cBox.title = result;
            syncLabelsWithSelection();
            zuwf.ListBox_UpdateSelectedItem(lstBoxes, result);
        }