public frmDinImage(Draw drw, UpdateDraw updater, SelectData selector) { InitializeComponent(); this.drw = drw; this.updater = updater; this.selector = selector; #region Свойства положения и размера udLeft.ValueChanged -= udLeft_ValueChanged; decimal value = (decimal)(float)drw.Props["Left"]; udLeft.Value = (value > 0) ? value : 0; udLeft.ValueChanged += udLeft_ValueChanged; udTop.ValueChanged -= udTop_ValueChanged; value = (decimal)(float)drw.Props["Top"]; udTop.Value = (value > 0) ? value : 0; udTop.ValueChanged += udTop_ValueChanged; udWidth.ValueChanged -= udWidth_ValueChanged; udWidth.Value = (decimal)(float)drw.Props["Width"]; udWidth.ValueChanged += udWidth_ValueChanged; udHeight.ValueChanged -= udHeight_ValueChanged; udHeight.Value = (decimal)(float)drw.Props["Height"]; udHeight.ValueChanged += udHeight_ValueChanged; #endregion #region Свойства для картинки cbMozaika.Checked = (bool)drw.Props["Mozaika"]; // замостить cbStretch.Checked = (bool)drw.Props["Stretch"]; // растянуть или сжать cbTransparent.Checked = (bool)drw.Props["Transparent"]; // прозрачный #endregion Image image = (Image)selector("ImageFileName", (string)drw.Props["ImageName"]); lbFileName.Text = drw.Props["ImageName"].ToString().ToLower(); if (image != null) { pbPreview.Image = image; } }
public frmDinDraw(Draw drw, UpdateDraw updater, SelectData selector) { InitializeComponent(); this.drw = drw; this.updater = updater; this.selector = selector; #region Свойства положения и размера udLeft.ValueChanged -= udLeft_ValueChanged; udLeft.Value = (decimal)(float)drw.Props["Left"]; udLeft.ValueChanged += udLeft_ValueChanged; udTop.ValueChanged -= udTop_ValueChanged; udTop.Value = (decimal)(float)drw.Props["Top"]; udTop.ValueChanged += udTop_ValueChanged; udWidth.ValueChanged -= udWidth_ValueChanged; udWidth.Value = (decimal)(float)drw.Props["Width"]; udWidth.ValueChanged += udWidth_ValueChanged; udHeight.ValueChanged -= udHeight_ValueChanged; udHeight.Value = (decimal)(float)drw.Props["Height"]; udHeight.ValueChanged += udHeight_ValueChanged; #endregion #region Свойства фона DrawPlugin.colorComboFillList(cbBackColor, LastColorIndex); DrawPlugin.colorComboSelectInList(cbBackColor, (Color)drw.Props["BackColor"]); cbBackPattern.Items.AddRange(DrawUtils.GetAllPatternNames()); // получение всех имён доступных паттернов cbBackPattern.SelectedIndex = (int)drw.Props["PatternMode"]; cbBackPatternColor.Enabled = (cbBackPattern.SelectedIndex > 1); DrawPlugin.colorComboFillList(cbBackPatternColor, LastColorIndex); DrawPlugin.colorComboSelectInList(cbBackPatternColor, (Color)drw.Props["PatternColor"]); #endregion tbTransparent.Value = 255 - (int)drw.Props["BackAlpha"]; lbTransparent.Text = ((int)(tbTransparent.Value / 255.0 * 100.0)) + " %"; DrawPlugin.colorComboFillList(cbStrokeColor, LastColorIndex); DrawPlugin.colorComboSelectInList(cbStrokeColor, (Color)drw.Props["StrokeColor"]); }
public frmDinValve(Draw drw, UpdateDraw updater, SelectData selector) { InitializeComponent(); this.drw = drw; this.updater = updater; this.selector = selector; #region Свойства положения и размера udLeft.ValueChanged -= udLeft_ValueChanged; udLeft.Value = (decimal)(float)drw.Props["Left"]; udLeft.ValueChanged += udLeft_ValueChanged; udTop.ValueChanged -= udTop_ValueChanged; udTop.Value = (decimal)(float)drw.Props["Top"]; udTop.ValueChanged += udTop_ValueChanged; udWidth.ValueChanged -= udWidth_ValueChanged; udWidth.Value = (decimal)(float)drw.Props["Width"]; udWidth.ValueChanged += udWidth_ValueChanged; udHeight.ValueChanged -= udHeight_ValueChanged; udHeight.Value = (decimal)(float)drw.Props["Height"]; udHeight.ValueChanged += udHeight_ValueChanged; #endregion tbPtName.Text = (string)drw.Props["PtName"]; //updateSelector(); kindComboFillList(cbSpinValve, LastSpinIndex); kindComboSelectInList(cbSpinValve, (int)drw.Props["SpinValve"]); #region Свойства цвета линии DrawPlugin.colorComboFillList(cbForeColor, LastColorIndex); DrawPlugin.colorComboSelectInList(cbForeColor, (Color)drw.Props["ForeColor0"]); #endregion #region Свойства цвета заполнения DrawPlugin.colorComboFillList(cbBackColor, LastColorIndex); DrawPlugin.colorComboSelectInList(cbBackColor, (Color)drw.Props["BackColor0"]); #endregion }
public frmBackground(Draw drw, UpdateDraw updater, SelectData selector) { InitializeComponent(); this.drw = drw; this.updater = updater; this.selector = selector; cbExpanded.Click -= rbExpanded_Click; cbExpanded.Checked = (bool)drw.Props["Expanded"]; cbExpanded.Click += rbExpanded_Click; cbSaveAspect.Click -= cbSaveAspect_Click; cbSaveAspect.Checked = (bool)drw.Props["SaveAspect"]; cbSaveAspect.Click += cbSaveAspect_Click; cbSaveAspect.Enabled = udLeft.Enabled = udTop.Enabled = udWidth.Enabled = udHeight.Enabled = cbExpanded.Checked; #region Свойства положения и размера udLeft.ValueChanged -= udLeft_ValueChanged; udLeft.Value = (decimal)(float)drw.Props["Left"]; udLeft.ValueChanged += udLeft_ValueChanged; udTop.ValueChanged -= udTop_ValueChanged; udTop.Value = (decimal)(float)drw.Props["Top"]; udTop.ValueChanged += udTop_ValueChanged; udWidth.ValueChanged -= udWidth_ValueChanged; udWidth.Value = (decimal)(float)drw.Props["Width"]; udWidth.ValueChanged += udWidth_ValueChanged; udHeight.ValueChanged -= udHeight_ValueChanged; udHeight.Value = (decimal)(float)drw.Props["Height"]; udHeight.ValueChanged += udHeight_ValueChanged; #endregion #region Свойства цвета фона DrawPlugin.colorComboFillList(cbBackColor, LastColorIndex); DrawPlugin.colorComboSelectInList(cbBackColor, (Color)drw.Props["BackColor"]); #endregion tbSchemeName.Text = (string)drw.Props["SchemeName"]; tbDescriptor.Text = (string)drw.Props["Descriptor"]; }
public void Redo() { if (Current.Material is null) { return; } Commanders[Current.Material].Redo(); UpdateDraw?.Invoke(); }
public frmDinLine(Draw drw, UpdateDraw updater, SelectData selector) { InitializeComponent(); this.drw = drw; this.updater = updater; this.selector = selector; #region Свойства положения и размера udLeft.ValueChanged -= udLeft_ValueChanged; udLeft.Value = (decimal)(float)drw.Props["Left"]; udLeft.ValueChanged += udLeft_ValueChanged; udTop.ValueChanged -= udTop_ValueChanged; udTop.Value = (decimal)(float)drw.Props["Top"]; udTop.ValueChanged += udTop_ValueChanged; udWidth.ValueChanged -= udWidth_ValueChanged; udWidth.Value = (decimal)(float)drw.Props["Width"]; udWidth.ValueChanged += udWidth_ValueChanged; udHeight.ValueChanged -= udHeight_ValueChanged; udHeight.Value = (decimal)(float)drw.Props["Height"]; udHeight.ValueChanged += udHeight_ValueChanged; #endregion tbPtName.Text = (string)drw.Props["PtName"]; updateSelector(); kindComboFillList(cbLineKind, LastKindIndex); kindComboSelectInList(cbLineKind, (int)drw.Props["LineKind"]); #region Свойства цвета линии DrawPlugin.colorComboFillList(cbColor, LastColorIndex); DrawPlugin.colorComboSelectInList(cbColor, (Color)drw.Props["Color"]); #endregion #region Свойства стиля линии styleComboFillList(cbLineStyle, LastStyleIndex); styleComboSelectInList(cbLineStyle, (int)drw.Props["LineStyle"]); #endregion udLineWidth.Value = (decimal)(float)drw.Props["LineWidth"]; #region Свойства цвета линии 0 DrawPlugin.colorComboFillList(cbColor0, LastColorIndex); DrawPlugin.colorComboSelectInList(cbColor0, (Color)drw.Props["Color0"]); #endregion #region Свойства стиля линии 0 styleComboFillList(cbLineStyle0, LastStyleIndex); styleComboSelectInList(cbLineStyle0, (int)drw.Props["LineStyle0"]); #endregion udLineWidth0.Value = (decimal)(float)drw.Props["LineWidth0"]; #region Свойства цвета линии 1 DrawPlugin.colorComboFillList(cbColor1, LastColorIndex); DrawPlugin.colorComboSelectInList(cbColor1, (Color)drw.Props["Color1"]); #endregion #region Свойства стиля линии 1 styleComboFillList(cbLineStyle1, LastStyleIndex); styleComboSelectInList(cbLineStyle1, (int)drw.Props["LineStyle1"]); #endregion udLineWidth1.Value = (decimal)(float)drw.Props["LineWidth1"]; }
public void Do(Material targetMaterial, IEditorCommand command) { if (targetMaterial is null) { return; } Commanders[targetMaterial].Do(command); if (command.IsDestructive) { IsSended = false; } UpdateDraw?.Invoke(); }
public frmDinJump(Draw drw, UpdateDraw updater, SelectData selector) { InitializeComponent(); this.drw = drw; this.updater = updater; this.selector = selector; #region Свойства положения и размера udLeft.ValueChanged -= udLeft_ValueChanged; udLeft.Value = (decimal)(float)drw.Props["Left"]; udLeft.ValueChanged += udLeft_ValueChanged; udTop.ValueChanged -= udTop_ValueChanged; udTop.Value = (decimal)(float)drw.Props["Top"]; udTop.ValueChanged += udTop_ValueChanged; udWidth.ValueChanged -= udWidth_ValueChanged; udWidth.Value = (decimal)(float)drw.Props["Width"]; udWidth.ValueChanged += udWidth_ValueChanged; udHeight.ValueChanged -= udHeight_ValueChanged; udHeight.Value = (decimal)(float)drw.Props["Height"]; udHeight.ValueChanged += udHeight_ValueChanged; #endregion cbFramed.Checked = (bool)drw.Props["Framed"]; cbSolid.Checked = (bool)drw.Props["Solid"]; #region Свойства шрифта DrawPlugin.fontComboFillList(cbFontName); cbFontName.Text = (string)drw.Props["FontName"]; udFontSize.ValueChanged -= udFontSize_ValueChanged; udFontSize.Value = (decimal)(float)drw.Props["FontSize"]; udFontSize.ValueChanged += udFontSize_ValueChanged; cbBold.Checked = (bool)drw.Props["FontBold"]; cbItalic.Checked = (bool)drw.Props["FontItalic"]; cbUnderline.Checked = (bool)drw.Props["FontUnderline"]; cbStrikeout.Checked = (bool)drw.Props["FontStrikeOut"]; DrawPlugin.colorComboFillList(cbFontColor, LastColorIndex); DrawPlugin.colorComboSelectInList(cbFontColor, (Color)drw.Props["FontColor"]); #endregion #region Свойства цвета фона DrawPlugin.colorComboFillList(cbColor, LastColorIndex); DrawPlugin.colorComboSelectInList(cbColor, (Color)drw.Props["Color"]); cbColor.Enabled = cbSolid.Checked; #endregion tbScreenName.TextChanged -= tbScreenName_TextChanged; tbScreenName.Text = (string)drw.Props["ScreenName"]; tbScreenName.TextChanged += tbScreenName_TextChanged; cbKeyLevel.SelectedIndex = (int)drw.Props["KeyLevel"]; tbText.TextChanged -= tbText_TextChanged; tbText.Text = (string)drw.Props["Text"]; tbText.TextChanged += tbText_TextChanged; }
public void Undo() { if (Current.Material is null) { return; } var isDestructive = Commanders[Current.Material].Undo(); if (isDestructive) { IsSended = false; } UpdateDraw?.Invoke(); }
public frmDinKontur(Draw drw, UpdateDraw updater, SelectData selector) { InitializeComponent(); this.drw = drw; this.updater = updater; this.selector = selector; #region Свойства для панели EnableFontGroup(true); #endregion #region Свойства положения и размера udLeft.ValueChanged -= udLeft_ValueChanged; udLeft.Value = (decimal)(float)drw.Props["Left"]; udLeft.ValueChanged += udLeft_ValueChanged; udTop.ValueChanged -= udTop_ValueChanged; udTop.Value = (decimal)(float)drw.Props["Top"]; udTop.ValueChanged += udTop_ValueChanged; udWidth.ValueChanged -= udWidth_ValueChanged; udWidth.Value = (decimal)(float)drw.Props["Width"]; udWidth.ValueChanged += udWidth_ValueChanged; udHeight.ValueChanged -= udHeight_ValueChanged; udHeight.Value = (decimal)(float)drw.Props["Height"]; udHeight.ValueChanged += udHeight_ValueChanged; #endregion #region Свойства шрифта DrawPlugin.fontComboFillList(cbFontName); cbFontName.Text = (string)drw.Props["FontName"]; udFontSize.ValueChanged -= udFontSize_ValueChanged; udFontSize.Value = (decimal)(float)drw.Props["FontSize"]; udFontSize.ValueChanged += udFontSize_ValueChanged; cbBold.Checked = (bool)drw.Props["FontBold"]; cbItalic.Checked = (bool)drw.Props["FontItalic"]; cbUnderline.Checked = (bool)drw.Props["FontUnderline"]; cbStrikeout.Checked = (bool)drw.Props["FontStrikeOut"]; DrawPlugin.colorComboFillList(cbFontColor, LastColorIndex); DrawPlugin.colorComboSelectInList(cbFontColor, (Color)drw.Props["FontColor"]); #endregion #region Свойства цвета фона DrawPlugin.colorComboFillList(cbColor, LastColorIndex); DrawPlugin.colorComboSelectInList(cbColor, (Color)drw.Props["Color"]); #endregion tbPtName.Text = (string)drw.Props["PtName"]; }
public frmDinDigital(Draw drw, UpdateDraw updater, SelectData selector) { InitializeComponent(); this.drw = drw; this.updater = updater; this.selector = selector; #region Свойства положения и размера udLeft.ValueChanged -= udLeft_ValueChanged; udLeft.Value = (decimal)(float)drw.Props["Left"]; udLeft.ValueChanged += udLeft_ValueChanged; udTop.ValueChanged -= udTop_ValueChanged; udTop.Value = (decimal)(float)drw.Props["Top"]; udTop.ValueChanged += udTop_ValueChanged; udWidth.ValueChanged -= udWidth_ValueChanged; udWidth.Value = (decimal)(float)drw.Props["Width"]; udWidth.ValueChanged += udWidth_ValueChanged; udHeight.ValueChanged -= udHeight_ValueChanged; udHeight.Value = (decimal)(float)drw.Props["Height"]; udHeight.ValueChanged += udHeight_ValueChanged; #endregion tbPtName.Text = (string)drw.Props["PtName"]; switch ((int)drw.Props["DigitalKind"]) { case 0: rbSquare.Checked = true; break; case 1: rbRing.Checked = true; break; case 2: rbRectangle.Checked = true; break; case 3: rbEllipce.Checked = true; break; } switch ((int)drw.Props["BorderKind"]) { case 0: rbNoBorder.Checked = true; break; case 1: rbSingleBorder.Checked = true; break; case 2: rbRichBorder.Checked = true; break; } }
public frmDinNet(Draw drw, UpdateDraw updater, SelectData selector) { InitializeComponent(); this.drw = drw; this.updater = updater; this.selector = selector; #region Свойства положения и размера udLeft.ValueChanged -= udLeft_ValueChanged; udLeft.Value = (decimal)(float)drw.Props["Left"]; udLeft.ValueChanged += udLeft_ValueChanged; udTop.ValueChanged -= udTop_ValueChanged; udTop.Value = (decimal)(float)drw.Props["Top"]; udTop.ValueChanged += udTop_ValueChanged; udWidth.ValueChanged -= udWidth_ValueChanged; udWidth.Value = (decimal)(float)drw.Props["Width"]; udWidth.ValueChanged += udWidth_ValueChanged; udHeight.ValueChanged -= udHeight_ValueChanged; udHeight.Value = (decimal)(float)drw.Props["Height"]; udHeight.ValueChanged += udHeight_ValueChanged; #endregion #region Свойства шрифта DrawPlugin.fontComboFillList(cbFontName); cbFontName.Text = (string)drw.Props["FontName"]; udFontSize.ValueChanged -= udFontSize_ValueChanged; udFontSize.Value = (decimal)(float)drw.Props["FontSize"]; udFontSize.ValueChanged += udFontSize_ValueChanged; cbBold.Checked = (bool)drw.Props["FontBold"]; cbItalic.Checked = (bool)drw.Props["FontItalic"]; cbUnderline.Checked = (bool)drw.Props["FontUnderline"]; cbStrikeout.Checked = (bool)drw.Props["FontStrikeOut"]; DrawPlugin.colorComboFillList(cbFontColor, LastColorIndex); DrawPlugin.colorComboSelectInList(cbFontColor, (Color)drw.Props["FontColor"]); #endregion cbShowPersents.Checked = (bool)drw.Props["ShowPersents"]; cbHideText.Checked = (bool)drw.Props["HideText"]; udScaleHigh.Value = (decimal)(float)drw.Props["ScaleHigh"]; udScaleLow.Value = (decimal)(float)drw.Props["ScaleLow"]; }
public Form ShowEditor(Draw element, UpdateDraw updater, SelectData selector) { return(new frmDinText(element, updater, selector)); }
public frmDinAnalog(Draw drw, UpdateDraw updater, SelectData selector) { InitializeComponent(); this.drw = drw; this.updater = updater; this.selector = selector; #region Свойства для панели cbShowPanel.Checked = (bool)drw.Props["ShowPanel"]; cbShowValue.Checked = (bool)drw.Props["ShowValue"]; cbShowUnit.Checked = (bool)drw.Props["ShowUnit"]; cbShowTag.Checked = (bool)drw.Props["ShowTag"]; EnableFontGroup(cbShowValue.Checked || cbShowUnit.Checked); #endregion #region Свойства положения и размера udLeft.ValueChanged -= udLeft_ValueChanged; udLeft.Value = (decimal)(float)drw.Props["Left"]; udLeft.ValueChanged += udLeft_ValueChanged; udTop.ValueChanged -= udTop_ValueChanged; udTop.Value = (decimal)(float)drw.Props["Top"]; udTop.ValueChanged += udTop_ValueChanged; udWidth.ValueChanged -= udWidth_ValueChanged; udWidth.Value = (decimal)(float)drw.Props["Width"]; udWidth.ValueChanged += udWidth_ValueChanged; udHeight.ValueChanged -= udHeight_ValueChanged; udHeight.Value = (decimal)(float)drw.Props["Height"]; udHeight.ValueChanged += udHeight_ValueChanged; #endregion #region Свойства рамки и ее цвета cbFramed.Checked = (bool)drw.Props["Framed"]; DrawPlugin.colorComboFillList(cbFrameColor, LastColorIndex); DrawPlugin.colorComboSelectInList(cbFrameColor, (Color)drw.Props["FrameColor"]); cbFrameColor.Enabled = cbFramed.Checked; #endregion #region Свойства указателя бара (уровня) cbBarLevelVisible.Checked = (bool)drw.Props["BarLevelVisible"]; cbBarLevelInverse.Checked = (bool)drw.Props["BarLevelInverse"]; rbShowLevel.Checked = (bool)drw.Props["ShowLevel"]; rbShowBar.Checked = (bool)drw.Props["ShowBar"]; DrawPlugin.colorComboFillList(cbBarLevelColor, LastColorIndex); DrawPlugin.colorComboSelectInList(cbBarLevelColor, (Color)drw.Props["BarLevelColor"]); cbBarLevelInverse.Enabled = cbBarLevelVisible.Checked; rbShowLevel.Enabled = cbBarLevelVisible.Checked; rbShowBar.Enabled = cbBarLevelVisible.Checked; cbBarLevelColor.Enabled = cbBarLevelVisible.Checked; #endregion #region Свойства шрифта DrawPlugin.fontComboFillList(cbFontName); cbFontName.Text = (string)drw.Props["FontName"]; udFontSize.ValueChanged -= udFontSize_ValueChanged; udFontSize.Value = (decimal)(float)drw.Props["FontSize"]; udFontSize.ValueChanged += udFontSize_ValueChanged; cbBold.Checked = (bool)drw.Props["FontBold"]; cbItalic.Checked = (bool)drw.Props["FontItalic"]; cbUnderline.Checked = (bool)drw.Props["FontUnderline"]; cbStrikeout.Checked = (bool)drw.Props["FontStrikeOut"]; DrawPlugin.colorComboFillList(cbFontColor, LastColorIndex); DrawPlugin.colorComboSelectInList(cbFontColor, (Color)drw.Props["FontColor"]); #endregion #region Свойства цвета фона DrawPlugin.colorComboFillList(cbColor, LastColorIndex); DrawPlugin.colorComboSelectInList(cbColor, (Color)drw.Props["Color"]); #endregion tbPtName.Text = (string)drw.Props["PtName"] + "." + (string)drw.Props["PtParam"]; }
public virtual Form Editor(UpdateDraw updater, SelectData selector) { return(plugin.ShowEditor(this, updater, selector)); }
public frmDinText(Draw drw, UpdateDraw updater, SelectData selector) { InitializeComponent(); this.drw = drw; this.updater = updater; this.selector = selector; #region Свойства положения и размера udLeft.ValueChanged -= udLeft_ValueChanged; udLeft.Value = (decimal)(float)drw.Props["Left"]; udLeft.ValueChanged += udLeft_ValueChanged; udTop.ValueChanged -= udTop_ValueChanged; udTop.Value = (decimal)(float)drw.Props["Top"]; udTop.ValueChanged += udTop_ValueChanged; udWidth.ValueChanged -= udWidth_ValueChanged; udWidth.Value = (decimal)(float)drw.Props["Width"]; udWidth.ValueChanged += udWidth_ValueChanged; udHeight.ValueChanged -= udHeight_ValueChanged; udHeight.Value = (decimal)(float)drw.Props["Height"]; udHeight.ValueChanged += udHeight_ValueChanged; #endregion cbShowPanel.Checked = (bool)drw.Props["ShowPanel"]; cbSolid.Checked = (bool)drw.Props["Solid"]; #region Свойства рамки и ее цвета cbFramed.Checked = (bool)drw.Props["Framed"]; DrawPlugin.colorComboFillList(cbFrameColor, LastColorIndex); DrawPlugin.colorComboSelectInList(cbFrameColor, (Color)drw.Props["FrameColor"]); cbFrameColor.Enabled = cbFramed.Checked; #endregion tbPtName.Text = (string)drw.Props["PtName"]; updateSelector(); #region Свойства шрифта DrawPlugin.fontComboFillList(cbFontName); cbFontName.Text = (string)drw.Props["FontName"]; udFontSize.ValueChanged -= udFontSize_ValueChanged; udFontSize.Value = (decimal)(float)drw.Props["FontSize"]; udFontSize.ValueChanged += udFontSize_ValueChanged; cbBold.Checked = (bool)drw.Props["FontBold"]; cbItalic.Checked = (bool)drw.Props["FontItalic"]; cbUnderline.Checked = (bool)drw.Props["FontUnderline"]; cbStrikeout.Checked = (bool)drw.Props["FontStrikeOut"]; DrawPlugin.colorComboFillList(cbFontColor, LastColorIndex); DrawPlugin.colorComboSelectInList(cbFontColor, (Color)drw.Props["FontColor"]); #endregion #region Свойства цвета фона DrawPlugin.colorComboFillList(cbColor, LastColorIndex); DrawPlugin.colorComboSelectInList(cbColor, (Color)drw.Props["Color"]); #endregion tbText.Text = (string)drw.Props["Text"]; #region Свойства шрифта при "0" DrawPlugin.fontComboFillList(cbFontName0); cbFontName0.Text = (string)drw.Props["Font0Name"]; udFontSize0.Value = (decimal)(float)drw.Props["Font0Size"]; cbBold0.Checked = (bool)drw.Props["Font0Bold"]; cbItalic0.Checked = (bool)drw.Props["Font0Italic"]; cbUnderline0.Checked = (bool)drw.Props["Font0Underline"]; cbStrikeout0.Checked = (bool)drw.Props["Font0StrikeOut"]; DrawPlugin.colorComboFillList(cbFontColor0, LastColorIndex); DrawPlugin.colorComboSelectInList(cbFontColor0, (Color)drw.Props["Font0Color"]); #endregion #region Свойства цвета фона при "0" DrawPlugin.colorComboFillList(cbColor0, LastColorIndex); DrawPlugin.colorComboSelectInList(cbColor0, (Color)drw.Props["Color0"]); #endregion tbText0.Text = (string)drw.Props["Text0"]; #region Свойства шрифта при "1" DrawPlugin.fontComboFillList(cbFontName1); cbFontName1.Text = (string)drw.Props["Font1Name"]; udFontSize1.Value = (decimal)(float)drw.Props["Font1Size"]; cbBold1.Checked = (bool)drw.Props["Font1Bold"]; cbItalic1.Checked = (bool)drw.Props["Font1Italic"]; cbUnderline1.Checked = (bool)drw.Props["Font1Underline"]; cbStrikeout1.Checked = (bool)drw.Props["Font1StrikeOut"]; DrawPlugin.colorComboFillList(cbFontColor1, LastColorIndex); DrawPlugin.colorComboSelectInList(cbFontColor1, (Color)drw.Props["Font1Color"]); #endregion #region Свойства цвета фона при "1" DrawPlugin.colorComboFillList(cbColor1, LastColorIndex); DrawPlugin.colorComboSelectInList(cbColor1, (Color)drw.Props["Color1"]); #endregion tbText1.Text = (string)drw.Props["Text1"]; }
public void SendModel() { PEPExtensions.Utility.Update(Args.Host.Connector, Pmx); IsSended = true; UpdateDraw?.Invoke(); }