Beispiel #1
0
        public Form16(Form14 parent, int id)
        {
            m_id      = id;
            m_parent  = parent;
            BackColor = Color.PowderBlue;
            InitializeComponent();

            dataGridView1.DefaultCellStyle.WrapMode = DataGridViewTriState.True;
            dataGridView1.AutoSizeRowsMode          = DataGridViewAutoSizeRowsMode.AllCells;

            setTitle(m_id);
            makeRequest(id);

            setAccessSettings();
        }
Beispiel #2
0
 private void button7_Click(object sender, EventArgs e)
 {
     if (frm14 == null || frm14.IsDisposed)
     {
         if (comboBox9.SelectedIndex == -1 || comboBox9.Items[comboBox9.SelectedIndex].ToString() == "Все изделия")
         {
             frm14 = new Form14("");
         }
         else
         {
             frm14 = new Form14(comboBox9.Items[comboBox9.SelectedIndex].
                                ToString());
         }
         frm14.Show();
     }
     else
     {
         frm14.WindowState = FormWindowState.Normal;
         frm14.Activate();
         frm14.BringToFront();
     }
 }