Exemplo n.º 1
0
        private void toolStripButton1_Click(object sender, EventArgs e)
        {
            MatDocsForm mdf = new MatDocsForm();

            mdf.Type = "add";
            mdf.ShowDialog();
        }
Exemplo n.º 2
0
 private void toolStripButton2_Click(object sender, EventArgs e)
 {
     if (this.dgv_docs.SelectedRows.Count <= 0) return;
     if (this.dgv_docs.SelectedRows[0].Cells["sysid"].Value == null) return;
     string sysid_ = this.dgv_docs.SelectedRows[0].Cells["sysid"].Value.ToString().Trim();
     if (sysid_ == "") return;
     MatDocsForm mdf = new MatDocsForm();
     mdf.Type = "edit";
     mdf.sysid_ = sysid_;
     mdf.ShowDialog();
 }
Exemplo n.º 3
0
        private void toolStripButton2_Click(object sender, EventArgs e)
        {
            if (this.dgv_docs.SelectedRows.Count <= 0)
            {
                return;
            }
            if (this.dgv_docs.SelectedRows[0].Cells["sysid"].Value == null)
            {
                return;
            }
            string sysid_ = this.dgv_docs.SelectedRows[0].Cells["sysid"].Value.ToString().Trim();

            if (sysid_ == "")
            {
                return;
            }
            MatDocsForm mdf = new MatDocsForm();

            mdf.Type   = "edit";
            mdf.sysid_ = sysid_;
            mdf.ShowDialog();
        }
Exemplo n.º 4
0
 private void toolStripButton1_Click(object sender, EventArgs e)
 {
     MatDocsForm mdf = new MatDocsForm();
     mdf.Type = "add";
     mdf.ShowDialog();
 }