Пример #1
0
        private void btnEditBrak_Click(object sender, EventArgs e)
        {
            if (CheckState(db_connection))
            {
                try
                {
                    if (gridTehAction.GetData(gridTehAction.Row, 1).ToString() != "")
                    {
                        this.TopMost = false;

                        frmDiscard f = new frmDiscard();
                        f.db_connection = db_connection;
                        f.usr = usr;
                        f.txtOrderNo.Text = lblFInfoOrderNo.Text;
                        f.Id = int.Parse(gridTehAction.GetData(gridTehAction.Row, 1).ToString());
                        f.ShowDialog();
                        if (f.DialogResult == System.Windows.Forms.DialogResult.OK)
                            FillDiscardTable();

                        this.TopMost = prop.Mod_designer_top_most;
                    }
                }
                catch
                {

                }
            }
        }
Пример #2
0
        private void btnAddBrak_Click(object sender, EventArgs e)
        {
            if (CheckState(db_connection))
            {
                this.TopMost = false;

                frmDiscard f = new frmDiscard();
                f.db_connection = db_connection;
                f.usr = usr;
                f.txtOrderNo.Text = lblFInfoOrderNo.Text;
                f.ShowDialog();
                if (f.DialogResult == System.Windows.Forms.DialogResult.OK)
                    FillDiscardTable();

                this.TopMost = prop.Mod_designer_top_most;
            }
        }