private void getMoldNames() { DataDisplayParameter parameter1 = new DataDisplayParameter(); parameter1.MachineCodes = this.machineCodes; parameter1.FieldCodes = SpecialFieldCodes.moldNameCodes; DataDisplayCallback callback1 = new DataDisplayCallback(DisplayMoldName); parameter1.Callback = callback1; if (commonVar.IsThisServer) { MethodMain.showMachineDataFromServer(parameter1); } else { MethodMain.showMachineDataFromClient(parameter1); } }
private void getMachineStateAndDisplay() { string[] stateFieldCodes = SpecialFieldCodes.stateCodes; DataDisplayParameter parameter1 = new DataDisplayParameter(); parameter1.MachineCodes = new string[] { MACHINE_CODE }; parameter1.FieldCodes = stateFieldCodes; DataDisplayCallback callback1 = new DataDisplayCallback(DisplayMachineState); parameter1.Callback = callback1; if (commonVar.IsThisServer) { MethodMain.showMachineDataFromServer(parameter1); } else { MethodMain.showMachineDataFromClient(parameter1); } }
private void getDataAndDisplay() { TileDetail detail = selectedMenu.Tag as TileDetail; BaseControl body = detail.BodyControl; BaseControl right = detail.RightControl; string[] codes1 = body.getFieldCodes(); string[] codes2 = right.getFieldCodes(); DataDisplayParameter parameter1 = new DataDisplayParameter(); parameter1.MachineCodes = new string[] { MACHINE_CODE }; parameter1.FieldCodes = codes1; DataDisplayCallback callback1 = new DataDisplayCallback(DisplayDataBody); parameter1.Callback = callback1; DataDisplayParameter parameter2 = new DataDisplayParameter(); parameter2.MachineCodes = new string[] { MACHINE_CODE }; parameter2.FieldCodes = codes2; DataDisplayCallback callback2 = new DataDisplayCallback(DisplayDataRight); parameter2.Callback = callback2; if (commonVar.IsThisServer) { MethodMain.showMachineDataFromServer(parameter1); MethodMain.showMachineDataFromServer(parameter2); } else { MethodMain.showMachineDataFromClient(parameter1); MethodMain.showMachineDataFromClient(parameter2); } body.BringToFront(); right.BringToFront(); }