public ParameterCheckerForm() { InitializeComponent(); _app = SgtApplication.CreateInstance(); SetExStyles(); }
public EditNumericPanelForm(NumericPanel edited) { InitializeComponent(); _app = SgtApplication.CreateInstance(); if (edited != null) { n_panel = edited; copy_panelName = n_panel.VPanelName; copy_items = new List<VPanelParameter>(); foreach (VPanelParameter par in n_panel.Items) { copy_items.Add(par); } copy_gr1 = new VPanelGraphic(); copy_gr2 = new VPanelGraphic(); copy_gr3 = new VPanelGraphic(); copy_gr4 = new VPanelGraphic(); copy_gr5 = new VPanelGraphic(); copy_graphic(n_panel.Graphic_1, copy_gr1); copy_graphic(n_panel.Graphic_2, copy_gr2); copy_graphic(n_panel.Graphic_3, copy_gr3); copy_graphic(n_panel.Graphic_4, copy_gr4); copy_graphic(n_panel.Graphic_5, copy_gr5); } else n_panel = new NumericPanel(_app); }
/// <summary> /// Реализует сравнение двух объектов /// </summary> /// <param name="x"></param> /// <param name="y"></param> /// <returns></returns> public int Compare(Object x, Object y) { try { if (x != null && y != null) { ListViewItem x_j = x as ListViewItem; ListViewItem y_j = y as ListViewItem; if (x_j != null && y_j != null) { float x_item = SgtApplication.ParseSingle(x_j.SubItems[2].Text); float y_item = SgtApplication.ParseSingle(y_j.SubItems[2].Text); if (!float.IsNaN(x_item) && !float.IsNaN(y_item)) { if (x_item > y_item) { return(1); } if (x_item < y_item) { return(-1); } } } } } catch { } return(0); }
private void accept_Click(object sender, EventArgs e) { float val = SgtApplication.ParseSingle(textBoxFlow.Text); if (float.IsNaN(val)) { MessageBox.Show(this, "Значение расхода указано не корректно", "Предупреждение", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); DialogResult = System.Windows.Forms.DialogResult.None; textBoxFlow.Select(); textBoxFlow.SelectAll(); return; } val = SgtApplication.ParseSingle(textBoxDiametr.Text); if (float.IsNaN(val)) { MessageBox.Show(this, "Значение расхода указано не корректно", "Предупреждение", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); DialogResult = System.Windows.Forms.DialogResult.None; textBoxDiametr.Select(); textBoxDiametr.SelectAll(); return; } }
static void Main() { try { AppDomain currentDomain = AppDomain.CurrentDomain; currentDomain.UnhandledException += new UnhandledExceptionEventHandler(MyHandler); mutex = new Mutex(true, identifier, out isNotRunning); if (isNotRunning) { app = SgtApplication.CreateInstance(); if (app != null) { app.Load(); app.Commutator.DeSerialize(); app.Connect(); System.Windows.Forms.Application.ApplicationExit += new EventHandler(Application_ApplicationExit); System.Windows.Forms.Application.EnableVisualStyles(); System.Windows.Forms.Application.SetCompatibleTextRenderingDefault(false); System.Windows.Forms.Application.Run(new mainForm()); } } else MessageBox.Show("Приложение уже запущено", "Информация", MessageBoxButtons.OK, MessageBoxIcon.Information); } catch (Exception ex) { ErrorHandler.WriteToLog(null, new ErrorArgs(ex.Message, ErrorType.Unknown)); } }
public NumericPanelForm() { InitializeComponent(); _app = SgtApplication.CreateInstance(); n_panel = new NumericPanel(_app); }
public EditNumericPanelForm(NumericPanel edited) { InitializeComponent(); _app = SgtApplication.CreateInstance(); if (edited != null) { n_panel = edited; copy_panelName = n_panel.VPanelName; copy_items = new List <VPanelParameter>(); foreach (VPanelParameter par in n_panel.Items) { copy_items.Add(par); } copy_gr1 = new VPanelGraphic(); copy_gr2 = new VPanelGraphic(); copy_gr3 = new VPanelGraphic(); copy_gr4 = new VPanelGraphic(); copy_gr5 = new VPanelGraphic(); copy_graphic(n_panel.Graphic_1, copy_gr1); copy_graphic(n_panel.Graphic_2, copy_gr2); copy_graphic(n_panel.Graphic_3, copy_gr3); copy_graphic(n_panel.Graphic_4, copy_gr4); copy_graphic(n_panel.Graphic_5, copy_gr5); } else { n_panel = new NumericPanel(_app); } }
public GasSensorsForm() { InitializeComponent(); _app = SgtApplication.CreateInstance(); for (int i = 0; i < 10; i++) { dataGridView1.Rows.Add(); } dataGridView1.Rows[0].Cells[0].Value = "Датчик 1"; dataGridView1.Rows[1].Cells[0].Value = "Датчик 2"; dataGridView1.Rows[2].Cells[0].Value = "Датчик 3"; dataGridView1.Rows[3].Cells[0].Value = "Датчик 4"; dataGridView1.Rows[4].Cells[0].Value = "Датчик 5"; dataGridView1.Rows[5].Cells[0].Value = "Датчик 6"; dataGridView1.Rows[6].Cells[0].Value = "Датчик 7"; dataGridView1.Rows[7].Cells[0].Value = "Датчик 8"; dataGridView1.Rows[8].Cells[0].Value = "Датчик 9"; dataGridView1.Rows[9].Cells[0].Value = "Датчик 10"; }
public SourceDiameterPumpForm() { InitializeComponent(); _app = SgtApplication.CreateInstance(); seter = new setter(seterF); }
/// <summary> /// Реализует сравнение двух объектов /// </summary> /// <param name="x"></param> /// <param name="y"></param> /// <returns></returns> public int Compare(ListViewItem x, ListViewItem y) { try { if (x != null && y != null) { float x_item = SgtApplication.ParseSingle(x.SubItems[1].ToString()); float y_item = SgtApplication.ParseSingle(y.SubItems[1].ToString()); if (!float.IsNaN(x_item) && !float.IsNaN(y_item)) { if (x_item > y_item) { return(1); } if (x_item < y_item) { return(-1); } } } } catch { } return(0); }
private void accept_Click(object sender, EventArgs e) { float hours = SgtApplication.ParseSingle(textBoxHours.Text); float minutes = SgtApplication.ParseSingle(textBoxMinutes.Text); if (float.IsNaN(hours) == false && float.IsNaN(minutes) == false) { TimeSpan span = new TimeSpan((int)hours, (int)minutes, 0); _app.Technology.P0212.Reset(span.Ticks); } else { if (float.IsNaN(hours)) { textBoxHours.Select(); textBoxHours.SelectAll(); MessageBox.Show(this, "Значение Часы указано не корректно", "Предупреждение", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); } if (float.IsNaN(minutes)) { textBoxHours.Select(); textBoxHours.SelectAll(); MessageBox.Show(this, "Значение Минуты указано не корректно", "Предупреждение", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); } DialogResult = System.Windows.Forms.DialogResult.None; } }
/// <summary> /// пересчитать таблицу /// </summary> protected void calc_data_grid() { float total = 0.0f; foreach (DataGridViewRow row in dataGridView1.Rows) { if (row != null) { float lenght = SgtApplication.ParseSingle(row.Cells[1].Value.ToString());//float.Parse(row.Cells[1].Value.ToString()); if (float.IsNaN(lenght) == false && lenght > 0) { float tlt = SgtApplication.ParseSingle(row.Cells[1].Value.ToString());// float.Parse(row.Cells[1].Value.ToString()); if (float.IsNaN(tlt) == false) { total = total + tlt; } row.Cells[4].Value = total; } else { break; } } } }
/// <summary> /// проверяем введенные данные /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void accept_Click(object sender, EventArgs e) { float n_val = SgtApplication.ParseSingle(textBoxLenght.Text); if (float.IsNaN(n_val) && n_val > -1) { textBoxLenght.Focus(); textBoxLenght.SelectAll(); MessageBox.Show(this, "Длина трубки указана не корректно", "Сообщение", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); DialogResult = DialogResult.None; return; } float n_val1 = SgtApplication.ParseSingle(textBoxNumber.Text); if (float.IsNaN(n_val1) && n_val1 > -1) { textBoxNumber.Focus(); textBoxNumber.SelectAll(); MessageBox.Show(this, "Номер свечи указан не корректно", "Сообщение", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); DialogResult = DialogResult.None; return; } }
public TechDataForm() { InitializeComponent(); mutex = new Mutex(); _app = SgtApplication.CreateInstance(); }
/// <summary> /// Актуализировать ссылки на параметры /// </summary> public void ActualizedParameters() { try { SgtApplication _app = SgtApplication.CreateInstance(); if (_app != null) { TParameter[] t_parames = Parameters; if (t_parames != null) { foreach (TParameter t_param in t_parames) { if (t_param != null) { Parameter p_param = _app.GetParameter(t_param.Identifier); if (p_param != null && p_param.Channel != null) { t_param.PNumber = p_param.Channel.Number; } } } } } } catch (Exception ex) { ErrorHandler.WriteToLog(this, new ErrorArgs(ex.Message, ErrorType.NotFatal)); } }
/// <summary> /// пробуем отсоединиться и соединиться /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void accept_Click(object sender, EventArgs e) { Uri last = DevManClient.Uri; try { if (textBoxTotalAddress.Text != string.Empty) { if (last.OriginalString != textBoxTotalAddress.Text) { Uri newUri = null; try { newUri = new Uri(textBoxTotalAddress.Text); SgtApplication _app = SgtApplication.CreateInstance(); if (_app != null) { _app.Commutator.DevManUri = newUri; } } catch (Exception ex) { MessageBox.Show(this, ex.Message, "Ошибка", MessageBoxButtons.OK, MessageBoxIcon.Error); return; } } } } catch (Exception ex) { MessageBox.Show(this, ex.Message, "Ошибка", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private SetLabelValue setter = null; // выполняет отображение данных #endregion Fields #region Constructors /// <summary> /// Инициализирует новый экземпляр класса /// </summary> /// <param name="app">Контекст в котором работает панель</param> public SpoPanel(SgtApplication app) : base("Панель СПО", VPanelType.PanelSpo) { _app = app; setter = new SetLabelValue(setLabelValue); app.Technology.onComplete += new EventHandler(Technology_onComplete); }
protected float splitterDistance = 271; // геометрия панели /// <summary> /// Инициализирует новый экземпляр класса /// </summary> /// <param name="app">Контекст в котором работает панель</param> public SpoPanel(SgtApplication app) : base("Панель СПО", VPanelType.PanelSpo) { _app = app; setter = new SetLabelValue(setLabelValue); app.Technology.onComplete += new EventHandler(Technology_onComplete); }
protected SgtApplication _app = null; // контекст работы программы public WorksForm() { InitializeComponent(); _app = SgtApplication.CreateInstance(); if (_app != null) { works = _app.Works; } }
/// <summary> /// инициализирует новый экземпляр класса /// </summary> public ParametersTunerForm() { InitializeComponent(); _app = SgtApplication.CreateInstance(); if (_app == null) { MessageBox.Show("Не удалось получить доступ к параметрам приложения"); } }
protected SgtApplication _app = null; // контекст работы программы #endregion Fields #region Constructors public WorksForm() { InitializeComponent(); _app = SgtApplication.CreateInstance(); if (_app != null) { works = _app.Works; } }
/// <summary> /// текст чило или нет /// </summary> /// <param name="value">проверяемый текст</param> /// <returns></returns> protected bool CheckText(string value) { try { float val = SgtApplication.ParseSingle(value); return(!float.IsNaN(val)); } catch { } return(false); }
/// <summary> /// Получили данные от devMan /// </summary> /// <param name="sender">Источник события</param> /// <param name="e">Параметры события</param> protected void DevManClient_onReceive(object sender, ReceivedEventArgs e) { try { DateTime now = DateTime.Now; TimeDatAacquisition = now; if (now > lastTime) { TimeSpan interval = now - lastTime; if (interval.Ticks > tInterval.Ticks) { lastTime = now; foreach (Parameter parameter in parameters) { PDescription channel = parameter.Channel; if (channel != null) { if (channel.Number >= 0 && channel.Number < e.Slice.Length) { CommutatorParameter.setCurrent(parameter, e.Slice[channel.Number]); e.Slice[channel.Number] = parameter.CalculatedValue; } } } SgtApplication app = SgtApplication.CreateInstance(); if (app != null) { app.Technology.Calculate(this, new CommutatorEventArgs(e.Slice)); if (tech_saver != null) { tech_saver(e.Slice); } } buffer.Append(new Slice(DateTime.Now, e.Slice)); UpdateTechnologyParameters(); if (onUpdated != null) { onUpdated(this, new CommutatorEventArgs(e.Slice)); } } } else { lastTime = now; } } catch (Exception ex) { ErrorHandler.WriteToLog(sender, new ErrorArgs(ex.Message, ErrorType.NotFatal)); } }
/// <summary> /// редактируем пару /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void editCurrent_Click(object sender, EventArgs e) { if (p109 != null && p112 == null) { if (listView1.SelectedItems != null && listView1.SelectedItems.Count > 0) { P0109.IdealFlowPair sel = listView1.SelectedItems[0].Tag as P0109.IdealFlowPair; if (sel != null) { IdealPairForm frm = new IdealPairForm(); frm.Text = "Редактирование"; frm.textBoxFlow.Text = sel.Flow.ToString(); frm.textBoxDiametr.Text = sel.Diameter.ToString(); if (frm.ShowDialog(this) == DialogResult.OK) { sel.Flow = SgtApplication.ParseSingle(frm.textBoxFlow.Text); sel.Diameter = SgtApplication.ParseSingle(frm.textBoxDiametr.Text); listView1.SelectedItems[0].SubItems[1].Text = sel.Flow.ToString(); listView1.SelectedItems[0].SubItems[2].Text = sel.Diameter.ToString(); } } } } else if (p112 != null && p109 == null) { if (listView1.SelectedItems != null && listView1.SelectedItems.Count > 0) { P0112.IdealFlowPair sel = listView1.SelectedItems[0].Tag as P0112.IdealFlowPair; if (sel != null) { IdealPairForm frm = new IdealPairForm(); frm.Text = "Редактирование"; frm.textBoxFlow.Text = sel.Flow.ToString(); frm.textBoxDiametr.Text = sel.Diameter.ToString(); if (frm.ShowDialog(this) == DialogResult.OK) { sel.Flow = SgtApplication.ParseSingle(frm.textBoxFlow.Text); sel.Diameter = SgtApplication.ParseSingle(frm.textBoxDiametr.Text); listView1.SelectedItems[0].SubItems[1].Text = sel.Flow.ToString(); listView1.SelectedItems[0].SubItems[2].Text = sel.Diameter.ToString(); } } } } }
/// <summary> /// добавляем пару /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void addNew_Click(object sender, EventArgs e) { if (p109 != null && p112 == null) { IdealPairForm frm = new IdealPairForm(); frm.Text = "Добавление"; if (frm.ShowDialog(this) == DialogResult.OK) { float flow = SgtApplication.ParseSingle(frm.textBoxFlow.Text); float diam = SgtApplication.ParseSingle(frm.textBoxDiametr.Text); P0109.IdealFlowPair pair = new P0109.IdealFlowPair(diam, flow); _app.Technology.P0109.InsertPair(pair); ListViewItem item = new ListViewItem((listView1.Items.Count + 1).ToString()); ListViewItem.ListViewSubItem rashod = new ListViewItem.ListViewSubItem(item, string.Format("{0:F3}", pair.Flow)); ListViewItem.ListViewSubItem diameter = new ListViewItem.ListViewSubItem(item, string.Format("{0:F3}", pair.Diameter)); item.SubItems.Add(rashod); item.SubItems.Add(diameter); item.Tag = pair; listView1.Items.Add(item); } } else if (p112 != null && p109 == null) { IdealPairForm frm = new IdealPairForm(); frm.Text = "Добавление"; if (frm.ShowDialog(this) == DialogResult.OK) { float flow = SgtApplication.ParseSingle(frm.textBoxFlow.Text); float diam = SgtApplication.ParseSingle(frm.textBoxDiametr.Text); P0112.IdealFlowPair pair = new P0112.IdealFlowPair(flow, diam); _app.Technology.P0112.InsertPair(pair); ListViewItem item = new ListViewItem((listView1.Items.Count + 1).ToString()); ListViewItem.ListViewSubItem rashod = new ListViewItem.ListViewSubItem(item, string.Format("{0:F3}", pair.Flow)); ListViewItem.ListViewSubItem diameter = new ListViewItem.ListViewSubItem(item, string.Format("{0:F3}", pair.Diameter)); item.SubItems.Add(rashod); item.SubItems.Add(diameter); item.Tag = pair; listView1.Items.Add(item); } } }
protected long initialized = 0; // инициализирована панель или нет /// <summary> /// Инициализирует новый экземпляр класса /// </summary> public FullPanel() : base("Общая панель", VPanelType.FullPanel) { g_panel_1 = new GraphicPanel(); g_panel_2 = new GraphicPanel(); g_panel_3 = new GraphicPanel(); items = new List <VPanelParameter>(); _app = SgtApplication.CreateInstance(); _app.Technology.onComplete += new EventHandler(Technology_onComplete); }
/// <summary> /// проверяем данные на корректность /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void accept_Click(object sender, EventArgs e) { float v = SgtApplication.ParseSingle(textBoxStartDept.Text); if (float.IsNaN(v) == true) { MessageBox.Show(this, "Указано не верно значение Стартовая глубина", "Предупреждение", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); DialogResult = System.Windows.Forms.DialogResult.None; } }
/// <summary> /// Актуализировать параметры цифровой панели /// </summary> public void Actualize(SgtApplication _app) { try { graphic_1.Parameter = _app.GetParameter(graphic_1.Identifier); graphic_2.Parameter = _app.GetParameter(graphic_2.Identifier); graphic_3.Parameter = _app.GetParameter(graphic_3.Identifier); graphic_4.Parameter = _app.GetParameter(graphic_4.Identifier); graphic_5.Parameter = _app.GetParameter(graphic_5.Identifier); } catch { } }
/// <summary> /// Получить основное приложение /// </summary> /// <returns></returns> public static SgtApplication CreateInstance() { if (_app == null) { _app = new SgtApplication(); _app.Initialize(); ErrorHandler.InitializeErrorHandler(); } return(_app); }
/// <summary> /// максимальное расход на входе /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void lb_RashodMax_TextChanged(object sender, EventArgs e) { TextBox box = sender as TextBox; if (box != null) { float n_val = SgtApplication.ParseSingle(box.Text); if (float.IsNaN(n_val) == false) { _app.DrillingPanel.Rashodnavhode.Range.Max = n_val; } } }
public PumpMovesForm() { InitializeComponent(); _app = SgtApplication.CreateInstance(); if (_app == null) { MessageBox.Show(this, "Не удалось инициализировать настройки", "Ошибка", MessageBoxButtons.OK, MessageBoxIcon.Error); Close(); } }
/// <summary> /// минимальное давление на манифольде /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void lb_pressureMin_TextChanged(object sender, EventArgs e) { TextBox box = sender as TextBox; if (box != null) { float n_val = SgtApplication.ParseSingle(box.Text); if (float.IsNaN(n_val) == false) { _app.DrillingPanel.Davlenienaman.Range.Min = n_val; } } }
/// <summary> /// поток на выходе макс /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void lb_pressureMax_TextChanged(object sender, EventArgs e) { TextBox box = sender as TextBox; if (box != null) { float n_val = SgtApplication.ParseSingle(box.Text); if (float.IsNaN(n_val) == false) { _app.SolutionPanel.Graphicpotok.Range.Max = n_val; } } }
/// <summary> /// определяем коэффициента пересчета для ходов насоса /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void pump_movies_btn_Click(object sender, EventArgs e) { PumpMovesForm frm = new PumpMovesForm(); if (frm.ShowDialog(this) == DialogResult.OK) { _app.Technology.P0109.ScaleFactorPump1 = SgtApplication.ParseSingle(frm.textBoxAnalogPervii.Text); _app.Technology.P0109.ScaleFactorPump2 = SgtApplication.ParseSingle(frm.textBoxAnalogVtoroi.Text); _app.Technology.P0112.ScaleFactorPump1 = SgtApplication.ParseSingle(frm.textBoxAsyPervii.Text); _app.Technology.P0112.ScaleFactorPump2 = SgtApplication.ParseSingle(frm.textBoxAsyVtoroi.Text); } }
/// <summary> /// минимальное значение мех скорость проходки /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void lb_MehSkorostMin_TextChanged(object sender, EventArgs e) { TextBox box = sender as TextBox; if (box != null) { float n_val = SgtApplication.ParseSingle(box.Text); if (float.IsNaN(n_val) == false) { _app.DrillingPanel.Mehskorost.Range.Min = n_val; } } }
protected int splitterDistance = 325; // геометрия окна #endregion Fields #region Constructors /// <summary> /// Инициализирует новый экземпляр класса /// </summary> /// <param name="app">Контекст в котором работает панель</param> public NumericPanel(SgtApplication app) : base("Цифровая панель", VPanelType.NumericPanel) { _app = app; items = new List<VPanelParameter>(); graphic_1 = new VPanelGraphic(); graphic_2 = new VPanelGraphic(); graphic_3 = new VPanelGraphic(); graphic_4 = new VPanelGraphic(); graphic_5 = new VPanelGraphic(); _app.Technology.onComplete += new EventHandler(Technology_onComplete); }
public IdealRashodForm(TParameter parameter) { InitializeComponent(); if (parameter is P0109) { p109 = parameter as P0109; } else p112 = parameter as P0112; _app = SgtApplication.CreateInstance(); listView1.ListViewItemSorter = new ListComparer(); }
private Parameter _parameter; // калибруемый параметр #endregion Fields #region Constructors public AddTransformationForm(SGT.SgtApplication _app) { app = _app; app.Commutator.onUpdated +=new CommutatorEventHandler(Converter_OnComplete); InitializeComponent(); transformation = new Transformation(); transformation.OnInsert += new Transformation.TConditionEventHandle(transformation_OnInsert); transformation.OnEdit += new Transformation.TConditionEventHandle(transformation_OnEdit); transformation.OnRemove += new Transformation.TConditionEventHandle(transformation_OnRemove); transformation.OnClear += new EventHandler(transformation_OnClear); transformation.OnError += new Transformation.ErrorEventHandle(transformation_OnError); transformation.OnExist += new Transformation.TConditionEventHandle(transformation_OnExist); Transformation.TCondition t1 = new Transformation.TCondition(); Transformation.TCondition t2 = new Transformation.TCondition(); t1.Result = 0; t1.Signal = 0; t2.Result = 65535; t2.Signal = 65535; transformation.Insert(t1); transformation.Insert(t2); first = new Argument(); second = new Argument(); calibrationGraphic.CalculateScale(); t_inserter = new InsertToText(InserterText); /* media = new Media(); media.Args[0].Index = 0; media.Args[1].Index = 1; med = new Float[2]; for (int i = 0; i < med.Length; i++) { med[i] = new Float(); } */ }
public DevManParametersForm(bool sahvat) { need = sahvat; InitializeComponent(); _app = SgtApplication.CreateInstance(); try { parameters = DevManClient.Parameters; } catch (Exception ex) { MessageBox.Show(ex.Message); } }
public DrillingShaftForm() { InitializeComponent(); _app = SgtApplication.CreateInstance(); if (_app != null) { } else { MessageBox.Show(this, "Во время загрузки возникла ошибка", "Ошибка", MessageBoxButtons.OK, MessageBoxIcon.Error); Close(); } }
/// <summary> /// Инициализирует новый экземпляр класса /// </summary> /// <param name="app">Контекст в котором работает панель</param> public DrillingPanel(SgtApplication app) : base("Буровая площадка", VPanelType.DrillingFloor) { _app = app; svp = new VPanelParameter(); m_svp = new VPanelParameter(); kmb = new VPanelParameter(); rotor = new VPanelParameter(); mom1 = new VPanelParameter(); mom2 = new VPanelParameter(); app.Technology.onComplete += new EventHandler(Technology_onComplete); }
public AsyCommandTunerForm() { InitializeComponent(); _app = SgtApplication.CreateInstance(); }
public DockedRateForm() { InitializeComponent(); _app = SgtApplication.CreateInstance(); }
public PanelsForm() { InitializeComponent(); _app = SgtApplication.CreateInstance(); }
public VolumeSolutionTanksForm() { InitializeComponent(); _app = SgtApplication.CreateInstance(); }
public CommandP0207Form() { InitializeComponent(); _app = SgtApplication.CreateInstance(); }
public FlowInletForm() { InitializeComponent(); _app = SgtApplication.CreateInstance(); }
public WeightColumnForm() { InitializeComponent(); _app = SgtApplication.CreateInstance(); }
public CreateNewSessionForm() { InitializeComponent(); _app = SgtApplication.CreateInstance(); }
public InsertNewWorkForm() { InitializeComponent(); _app = SgtApplication.CreateInstance(); }
public FullPanelForm(FullPanel _panel) { InitializeComponent(); area = new bufferArea(); _app = SgtApplication.CreateInstance(); if (_panel == null) { } else { fullPanel = _panel; fullPanel.UpdateNumeric(); CopyTo(fullPanel.GPanel_1.Graphic_1, area.GraphicsGroup_1[0]); CopyTo(fullPanel.GPanel_1.Graphic_2, area.GraphicsGroup_1[1]); CopyTo(fullPanel.GPanel_1.Graphic_3, area.GraphicsGroup_1[2]); CopyTo(fullPanel.GPanel_1.Graphic_4, area.GraphicsGroup_1[3]); CopyTo(fullPanel.GPanel_1.Graphic_5, area.GraphicsGroup_1[4]); CopyTo(fullPanel.GPanel_2.Graphic_1, area.GraphicsGroup_2[0]); CopyTo(fullPanel.GPanel_2.Graphic_2, area.GraphicsGroup_2[1]); CopyTo(fullPanel.GPanel_2.Graphic_3, area.GraphicsGroup_2[2]); CopyTo(fullPanel.GPanel_2.Graphic_4, area.GraphicsGroup_2[3]); CopyTo(fullPanel.GPanel_2.Graphic_5, area.GraphicsGroup_2[4]); CopyTo(fullPanel.GPanel_3.Graphic_1, area.GraphicsGroup_3[0]); CopyTo(fullPanel.GPanel_3.Graphic_2, area.GraphicsGroup_3[1]); CopyTo(fullPanel.GPanel_3.Graphic_3, area.GraphicsGroup_3[2]); CopyTo(fullPanel.GPanel_3.Graphic_4, area.GraphicsGroup_3[3]); CopyTo(fullPanel.GPanel_3.Graphic_5, area.GraphicsGroup_3[4]); area.Items.Clear(); if (fullPanel.Items != null && fullPanel.Items.Count > 0) { foreach (VPanelParameter item in fullPanel.Items) { if (item != null) { VPanelParameter n_item = new VPanelParameter(); n_item.Color = item.Color; n_item.Font = item.Font; n_item.Identifier = item.Identifier; n_item.PNumber = item.PNumber; n_item.Tag = item.Tag; area.Items.Add(n_item); } } } checkBox1.Checked = area.Show_gr1 = fullPanel.Show_gr1; checkBox2.Checked = area.Show_gr2 = fullPanel.Show_gr2; checkBox3.Checked = area.Show_gr3 = fullPanel.Show_gr3; numericUpDown1.Value = area.GraphicsGroup_1[0].Width; numericUpDown2.Value = area.GraphicsGroup_1[1].Width; numericUpDown4.Value = area.GraphicsGroup_1[2].Width; numericUpDown3.Value = area.GraphicsGroup_1[3].Width; numericUpDown5.Value = area.GraphicsGroup_1[4].Width; numericUpDown15.Value = area.GraphicsGroup_2[0].Width; numericUpDown14.Value = area.GraphicsGroup_2[1].Width; numericUpDown13.Value = area.GraphicsGroup_2[2].Width; numericUpDown12.Value = area.GraphicsGroup_2[3].Width; numericUpDown11.Value = area.GraphicsGroup_2[4].Width; numericUpDown10.Value = area.GraphicsGroup_3[0].Width; numericUpDown9.Value = area.GraphicsGroup_3[1].Width; numericUpDown8.Value = area.GraphicsGroup_3[2].Width; numericUpDown7.Value = area.GraphicsGroup_3[3].Width; numericUpDown6.Value = area.GraphicsGroup_3[4].Width; textBox31.Text = fullPanel.VPanelName; } }
public SpeedRotorForm() { InitializeComponent(); _app = SgtApplication.CreateInstance(); }
public DriveParametersForm() { InitializeComponent(); _app = SgtApplication.CreateInstance(); }