Exemple #1
0
        private void ToolStripMenuItemCreateSourcingNote_Click(object sender, EventArgs e)
        {
            FrmEditSourcingNote frm = new FrmEditSourcingNote();

            frm.StartPosition = FormStartPosition.CenterScreen;
            frm.Show();
        }
Exemple #2
0
        private void ToolStripMenuItemEditNote_Click(object sender, EventArgs e)
        {
            DataGridViewSelectedRowCollection rows = this.pagedDgvSourcingNote.DgvData.SelectedRows;

            if (rows == null || rows.Count != 1)
            {
                return;
            }

            DataGridViewRow row = rows[0];

            if (row == null)
            {
                return;
            }

            int noteId            = StringUtil.GetSafeInt(row.Cells[0].Value);
            SourcingNoteType note = SourcingNoteDAL.GetSourcingNoteById(noteId);

            if (note == null)
            {
                return;
            }

            FrmEditSourcingNote frm = new FrmEditSourcingNote(note);

            frm.StartPosition = FormStartPosition.CenterParent;
            frm.ShowDialog();

            this.pagedDgvSourcingNote.LoadData();
        }
Exemple #3
0
 private void ToolStripMenuItemCreateSourcingNote_Click(object sender, EventArgs e)
 {
     FrmEditSourcingNote frm = new FrmEditSourcingNote();
     frm.StartPosition = FormStartPosition.CenterScreen;
     frm.Show();
 }