public override sealed void DrawControls() { if (IsLoad) { TypesOfLampsStatus state = Accessory.GetState(TypeOfAccessories.Case, CaseBarcode); ListOfLabelsConstructor list = new ListOfLabelsConstructor(MainProcess, ResultParameters); list.ListOfLabels = new List<LabelForConstructor> { new LabelForConstructor("������", ControlsStyle.LabelH2), new LabelForConstructor("������: {0}"), new LabelForConstructor("�����: {0}"), new LabelForConstructor("������� �� {0}"), new LabelForConstructor("�����������", ControlsStyle.LabelH2), new LabelForConstructor("�����: {0}",1), new LabelForConstructor("������� �� {0}"), }; MainProcess.CreateButton("���������", 15, 225, 100, 35, "installNew", InstallNew); MainProcess.CreateButton("��������", 125, 225, 100, 35, "collate", Collate); if (state == TypesOfLampsStatus.ToRepair) { MainProcess.CreateButton("���������", 15, 275, 100, 35, "storages", Storages); } else { MainProcess.CreateButton("������", 15, 275, 100, 35, "repair", Repair); } MainProcess.CreateButton("������", 125, 275, 100, 35, "writeoff", WriteOff, null, null, state != TypesOfLampsStatus.ToCharge); } }
public override sealed void DrawControls() { if (IsLoad) { object[] data = getLightPositionInfo(); map = Convert.ToInt32(data[1]); register = Convert.ToInt32(data[2]); position = Convert.ToInt32(data[3]); ListOfLabelsConstructor list = new ListOfLabelsConstructor(MainProcess, "�������� �²��������", data); list.ListOfLabels = new List<LabelForConstructor> { new LabelForConstructor(string.Empty, ControlsStyle.LabelH2), new LabelForConstructor(string.Empty, ControlsStyle.LabelH2), new LabelForConstructor(string.Empty, ControlsStyle.LabelH2), new LabelForConstructor("������������:", ControlsStyle.LabelH2), new LabelForConstructor("�����: {0}"), new LabelForConstructor("������: {0}", 1), new LabelForConstructor("������� �{0}") }; MainProcess.CreateButton("O�", 10, 275, 105, 35, "ok", Ok_click); MainProcess.CreateButton("³����", 125, 275, 105, 35, "cancel", Cancel_click); } }
public override sealed void DrawControls() { if (IsLoad) { bool underWarrantly = Cases.UnderWarranty(LightBarcode); object[] lightData = Cases.GetLightInfo(LightBarcode); ListOfLabelsConstructor list = new ListOfLabelsConstructor(MainProcess, TOPIC_OF_PROCESS, lightData); list.ListOfLabels = new List<LabelForConstructor> { new LabelForConstructor( underWarrantly ? "�����! ���������" : string.Empty, ControlsStyle.LabelH2Red), new LabelForConstructor( underWarrantly ? "����������� �� ������!" : string.Empty, ControlsStyle.LabelH2Red), new LabelForConstructor(string.Empty, false), new LabelForConstructor("������: {0}"), new LabelForConstructor("�����: {0}"), new LabelForConstructor("������� �� {0}"), new LabelForConstructor("���������� {0}"), new LabelForConstructor(string.Empty, false), new LabelForConstructor("�������� ���������?", ControlsStyle.LabelH2Red) }; MainProcess.CreateButton("���", 10, 275, 105, 35, "ok", Ok_click); MainProcess.CreateButton("ͳ", 125, 275, 105, 35, "cancel", Cancel_click); } }
public override sealed void DrawControls() { if (IsLoad) { TypesOfLampsStatus state = Accessory.GetState(TypeOfAccessories.Lamp, LampBarcode); ListOfLabelsConstructor list = new ListOfLabelsConstructor(MainProcess, "�����", getData()); list.ListOfLabels = new List<LabelForConstructor> { new LabelForConstructor(string.Empty, false), new LabelForConstructor(string.Empty, false), new LabelForConstructor(string.Empty, false), new LabelForConstructor(string.Empty, false), new LabelForConstructor("������: {0}"), new LabelForConstructor("�����: {0}"), new LabelForConstructor("������� �� {0}") }; if (state == TypesOfLampsStatus.ToRepair) { MainProcess.CreateButton("���������", 15, 275, 100, 35, "storage", Storage_Click); } else { MainProcess.CreateButton("������", 15, 275, 100, 35, "repair", Repair_Click); } MainProcess.CreateButton("��������", 125, 275, 100, 35, "writeoff", Writeoff_Click, null, null, state != TypesOfLampsStatus.ToCharge); } }
public override sealed void DrawControls() { if (IsLoad) { MainProcess.ClearControls(); ListOfLabelsConstructor listOfLabels = new ListOfLabelsConstructor(MainProcess, "Ремонт", getUnitInfo()); List<LabelForConstructor> list = new List<LabelForConstructor>(); bool underWarrantly = underWarranty(); if (underWarrantly) { list.Add(new LabelForConstructor(string.Empty, ControlsStyle.LabelH2Red)); list.Add(new LabelForConstructor("УВАГА! Ел.блок", ControlsStyle.LabelH2Red)); list.Add(new LabelForConstructor("знаходиться на гарантії!", ControlsStyle.LabelH2Red)); } else { list.Add(new LabelForConstructor(string.Empty, ControlsStyle.LabelH2Red)); list.Add(new LabelForConstructor(string.Empty, ControlsStyle.LabelH2Red)); list.Add(new LabelForConstructor("Ел.блок не на гарантії", ControlsStyle.LabelH2)); } list.AddRange( new List<LabelForConstructor> { new LabelForConstructor(string.Empty, false), new LabelForConstructor("Модель: {0}"), new LabelForConstructor("Партія: {0}"), new LabelForConstructor("Гарантія до {0}"), new LabelForConstructor("Контрагент {0}"), new LabelForConstructor(string.Empty, false), new LabelForConstructor(underWarrantly ? "Помітити на обмін?" : string.Empty, ControlsStyle.LabelH2Red) }); listOfLabels.ListOfLabels = list; if (underWarrantly) { MainProcess.CreateButton("Так", 15, 275, 100, 35, "exchangeButton", exchange_Click); MainProcess.CreateButton("Ні", 125, 275, 100, 35, "repairButton", repair_Click); } else { MainProcess.CreateButton("Ок", 15, 275, 100, 35, "repairButton", repair_Click); MainProcess.CreateButton("Відміна", 125, 275, 100, 35, "exitButton", exit_click); } } }
public override sealed void DrawControls() { if (IsLoad) { ListOfLabelsConstructor list = new ListOfLabelsConstructor(MainProcess, "������������ �²��������", ResultParameters); list.ListOfLabels = new List<LabelForConstructor> { new LabelForConstructor(string.Empty, ControlsStyle.LabelH2), new LabelForConstructor(string.Empty, ControlsStyle.LabelH2), new LabelForConstructor(string.Empty, ControlsStyle.LabelH2), new LabelForConstructor("̲��� ������������:", ControlsStyle.LabelH2), new LabelForConstructor("�����: {0}"), new LabelForConstructor("������: {0}"), new LabelForConstructor("������� �{0}") }; MainProcess.CreateButton("O�", 10, 275, 105, 35, "ok", Ok_click); MainProcess.CreateButton("³����", 125, 275, 105, 35, "cancel", Cancel_click); } }
public override sealed void DrawControls() { if (IsLoad) { object[] parameters = GetNewIlluminatorInfo(); ListOfLabelsConstructor list = new ListOfLabelsConstructor(MainProcess, "����� ����������", parameters); list.ListOfLabels = new List<LabelForConstructor> { new LabelForConstructor(string.Empty, false), new LabelForConstructor(string.Empty, false), new LabelForConstructor("������", ControlsStyle.LabelH2), new LabelForConstructor("������: {0}"), new LabelForConstructor("�����: {0}"), new LabelForConstructor("������� �� {0}"), new LabelForConstructor("�����������", ControlsStyle.LabelH2), new LabelForConstructor("�����: {0}"), new LabelForConstructor("������� �� {0}",1), }; MainProcess.CreateButton("��", 20, 275, 200, 35, "ok", Ok); } }
public override sealed void DrawControls() { if (IsLoad) { ListOfLabelsConstructor list = new ListOfLabelsConstructor(MainProcess, ResultParameters); list.ListOfLabels = new List<LabelForConstructor> { new LabelForConstructor("������", ControlsStyle.LabelH2), new LabelForConstructor("������: {0}"), new LabelForConstructor("�����: {0}"), new LabelForConstructor("������� �� {0}"), new LabelForConstructor("�����", ControlsStyle.LabelH2), new LabelForConstructor("������: {0}"), new LabelForConstructor("�����: {0}"), new LabelForConstructor("������� �� {0}"), new LabelForConstructor("�����������", ControlsStyle.LabelH2), new LabelForConstructor("�����: {0}",1), new LabelForConstructor("������� �� {0}"), }; MainProcess.CreateButton("��������", 15, 275, 100, 35, "breakDown", BreakDown); MainProcess.CreateButton("����������", 125, 275, 100, 35, "installNew", InstallNew); } }
/// <summary>�����������</summary> /// <param name="id">Id</param> /// <param name="typeOfAccessories">��� ��������������</param> private void showInfoById(long id, TypeOfAccessories typeOfAccessories) { MainProcess.ClearControls(); ListOfLabelsConstructor list = new ListOfLabelsConstructor(MainProcess); string topic; Dictionary<string, KeyValuePair<Type, object>> listOfDetail; //���������� ��������� ���� � �������� list.ListOfLabels = CatalogObject.GetVisualPresenter(id, typeOfAccessories, out topic, out listOfDetail); MainProcess.ToDoCommand = topic; //���������� ������ ��� �������� �� ��������� �������� drawButtons(listOfDetail); }
/// <summary>Окно с шага "UnderWarrantly"</summary> private void warrantlyWin() { object[] lightData = Cases.GetLightInfo(LightBarcode); ListOfLabelsConstructor list = new ListOfLabelsConstructor(MainProcess, REPAIR_TOPIC, lightData); list.ListOfLabels = new List<LabelForConstructor> { new LabelForConstructor("УВАГА! Світильник", ControlsStyle.LabelH2Red), new LabelForConstructor("знаходиться на гарантії!", ControlsStyle.LabelH2Red), new LabelForConstructor(string.Empty, false), new LabelForConstructor("Модель: {0}"), new LabelForConstructor("Партія: {0}"), new LabelForConstructor("Гарантія до {0}"), new LabelForConstructor("Контрагент {0}"), new LabelForConstructor(string.Empty, false), new LabelForConstructor("Помітити на обмін?", ControlsStyle.LabelH2Red) }; MainProcess.CreateButton("Так", 15, 275, 100, 35, "firstButton", button_Click, Stages.FromUnderWarrantly, true); MainProcess.CreateButton("Ні", 125, 275, 100, 35, "secondButton", button_Click, Stages.OutOfWarrantlyUnit, true); }