Exemplo n.º 1
0
 private void addToolStripMenuItem_Click(object sender, EventArgs e)
 {
     YctMode mode = new YctMode();
     mode.shop = Const.userName;
     YctForm yf = new YctForm("新增", mode);
     yf.ShowDialog();
     showStatus(Const.info);
     searchBtn_Click(sender, e);
 }
Exemplo n.º 2
0
        private void addToolStripMenuItem_Click(object sender, EventArgs e)
        {
            YctMode mode = new YctMode();

            mode.shop = Const.userName;
            YctForm yf = new YctForm("新增", mode);

            yf.ShowDialog();
            showStatus(Const.info);
            searchBtn_Click(sender, e);
        }
Exemplo n.º 3
0
        private void updateToolStripMenuItem_Click(object sender, EventArgs e)
        {
            YctMode mode = getModeFromNowRow();

            if (mode == null)
            {
                MessageBox.Show("请选中一行进行修改操作。");
                return;
            }

            YctForm yf = new YctForm("修改", mode);

            yf.ShowDialog();
            showStatus(Const.info);
            searchBtn_Click(sender, e);
        }
Exemplo n.º 4
0
        private void updateToolStripMenuItem_Click(object sender, EventArgs e)
        {
            YctMode mode = getModeFromNowRow();
            if (mode == null)
            {
                MessageBox.Show("请选中一行进行修改操作。");
                return;
            }

            YctForm yf = new YctForm("修改", mode);
            yf.ShowDialog();
            showStatus(Const.info);
            searchBtn_Click(sender, e);
        }