Example #1
0
 private void barButtonItemAdd_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     using (ProductionForm addForm = new ProductionForm())
     {
         addForm.ShowDialog();
         addForm.Dispose();
     }
     loadData();
 }
Example #2
0
        private void barButtonItemView_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            ProductionForm viewForm = new ProductionForm();

            viewForm.currentProductionGuid = (Guid)productionGridView.GetFocusedRowCellValue("GUID");
            viewForm.edit = true;
            viewForm.view = true;
            viewForm.ShowDialog();
        }
Example #3
0
 private void barButtonItemEdit_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     using (ProductionForm editForm = new ProductionForm())
     {
         editForm.currentProductionGuid = (Guid)productionGridView.GetFocusedRowCellValue("GUID");
         editForm.edit = true;
         editForm.ShowDialog();
     }
     loadData();
 }
Example #4
0
        private void продукцияToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ProductionForm frm = new ProductionForm(deletion_allowed);

            frm.ShowDialog();
        }