예제 #1
0
        private void tsbtnNew_Click(object sender, EventArgs e)
        {
            FrmTag frmTag = new FrmTag();

            if (DialogResult.OK == frmTag.ShowDialog())
            {
                NewTagPage(frmTag.currTag.id, frmTag.currTag.tag);
                InitLoadTagMenuStrip();
            }
        }
예제 #2
0
        /// <summary>
        /// 修改tag
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void tsMenuItemTagEdit_Click(object sender, EventArgs e)
        {
            FrmTag  frmTag = new FrmTag();
            TabPage page   = tabControlMain.SelectedTab;

            frmTag.initEditData(page.Tag.ToString(), page.Text);
            if (frmTag.DialogResult == DialogResult.OK)
            {
                page.Text = frmTag.currTag.tag;
                InitLoadTagMenuStrip();
            }
        }