Ejemplo n.º 1
0
        private void 添加检材AToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (this.code.Length < 1)
            {
                return;
            }
            AppendForm appendForm = new AppendForm(this);

            appendForm.Show();
        }
Ejemplo n.º 2
0
        private void 编辑EToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            if (this.listView_Main.SelectedItems.Count < 1)
            {
                return;
            }
            int        id   = int.Parse(this.listView_Main.SelectedItems[0].Text) - 1;
            AppendForm edit = new AppendForm(this, this.sampleList[id], id);

            edit.ShowDialog();
        }
Ejemplo n.º 3
0
        /// <summary>
        /// 菜单栏新建
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void 新建案件NToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.code = "";
            this.info = "";
            this.sampleList.RemoveRange(0, this.sampleList.Count);
            this.listView_Main.Items.Clear();
            NewForm      from = new NewForm();
            DialogResult r    = from.ShowDialog();

            if (r == DialogResult.OK)
            {
                this.code  = from.Code;
                this.info  = from.Name;
                this.Text += " - " + this.code;
                this.Text += " *";
                AppendForm appendForm = new AppendForm(this);
                appendForm.Show();
            }
        }