Exemplo n.º 1
0
        private void buttonPositionAdd_Click(object sender, EventArgs e)
        {
            var Form = new PositionEntityForm();

            Form.pf = this;
            Form.Show();
        }
Exemplo n.º 2
0
        private void buttonPositionEdit_Click(object sender, EventArgs e)
        {
            try
            {
                var sPId = dataGridViewPosition.SelectedCells[0].Value.ToString();
                if (String.IsNullOrEmpty(sPId))
                {
                    throw new Exception("Не выбрана должность");
                }

                var Form = new PositionEntityForm();
                Form.PositionId = Int32.Parse(sPId);
                Form.pf         = this;
                Form.Show();
            }
            catch (Exception gg)
            {
                MessageBox.Show(gg.Message, "SWA", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }