Beispiel #1
0
        private void metroTileDocumentAdd_Click(object sender, EventArgs e)
        {
            var Form = new StaffDocumentsEntityForm();

            Form.StaffId = StaffId;
            Form.sdf     = this;
            Form.Show();
        }
Beispiel #2
0
        private void buttonInsideEdit_Click(object sender, EventArgs e)
        {
            try
            {
                var dId = dataGridViewInside.SelectedCells[0].Value.ToString();
                if (String.IsNullOrEmpty(dId))
                {
                    throw new Exception("Не выбран документ");
                }

                var Form = new StaffDocumentsEntityForm();
                Form.Id  = dataGridViewInside.SelectedCells[0].Value.ToString();
                Form.sdf = this;
                Form.Show();
            }
            catch (Exception gg)
            {
                MessageBox.Show(gg.Message, "SWA", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }