public TafelManager(FrontsOrdersManager tFrontsOrdersManager) { FrontsOrdersManager = tFrontsOrdersManager; MainOrdersDT = new DataTable(); FrontOrdersDT = new DataTable(); MainOrdersDT.Columns.Add(new DataColumn("ClientName", Type.GetType("System.String"))); MainOrdersDT.Columns.Add(new DataColumn("OrderNumber", Type.GetType("System.String"))); MainOrdersDT.Columns.Add(new DataColumn("MainOrderID", Type.GetType("System.Int32"))); MainOrdersDT.Columns.Add(new DataColumn("GroupType", Type.GetType("System.Int32"))); MainOrdersBS = new BindingSource(); FrontOrdersBS = new BindingSource(); MainOrdersBS.DataSource = MainOrdersDT; }
public DyeingAssignmentsMaterialForm(Form tMainForm, ref ControlAssignments tControlAssignmentsManager, ref FrontsOrdersManager tFrontsOrdersManager, DateTime dFrom, DateTime dTo) { InitializeComponent(); MainForm = tMainForm; From = dFrom; To = dTo; ControlAssignmentsManager = tControlAssignmentsManager; FrontsOrdersManager = tFrontsOrdersManager; //FrontConfigID = aFrontConfigID; //Square = dSquare; this.MaximumSize = Screen.PrimaryScreen.WorkingArea.Size; Initialize(); while (!SplashForm.bCreated) { ; } }