コード例 #1
0
        private void btn_add_Click(object sender, EventArgs e)
        {
            if (popup == null)
            {
                popup                   = new popupForm();
                popup.Text              = "Create New Preset";
                popup.btn_create.Click += new EventHandler(popup_presetCreate);
                popup.FormClosing      += new FormClosingEventHandler(popupCreate_closed);

                popup.Location = this.Location;
                popup.Show();
            }
        }
コード例 #2
0
        private void btn_edit_Click(object sender, EventArgs e)
        {
            if (popup == null)
            {
                popup                   = new popupForm();
                popup.Text              = "Edit Preset Name";
                popup.btn_create.Text   = "Rename";
                popup.tb_name.Text      = mPresetList[getListViewIndex()].Name;
                popup.btn_create.Click += new EventHandler(popup_presetEdit);
                popup.FormClosing      += new FormClosingEventHandler(popupEdit_closed);

                popup.Location = this.Location;
                popup.Show();
            }
        }