public DummySolutionExplorer(CustomStyle style) { InitializeComponent(); DefaultHistoryFile = Path.Combine(Path.GetDirectoryName(Application.ExecutablePath), "solution.xml"); GridInit(); tsbtEdit.Image = highQualityImageList.ImageItems[1].Image; metroGrid.DefaultCellStyle.SelectionBackColor = style.GridSelectionColor; }
public void Clone(CustomStyle style) { _TextBoxBackColor = style.TextBoxBackColor; _TextColor = style.TextColor; _IndentBackColor = style.IndentBackColor; _ServiceLineColor = style.ServiceLineColor; _CaretColor = style.CaretColor; _BookmarkColor = style.BookmarkColor; _LineNumColor = style.LineNumColor; _SelectionColor = style.SelectionColor; }
public DummyDoc(SerialPort p, CustomStyle style) { InitializeComponent(); AutoScaleMode = AutoScaleMode.Dpi; rcvSetting = new ReceiveSetting(this); if (null != p) { Text = p.PortName; serialPort.PortName = p.PortName; serialPort.BaudRate = p.BaudRate; serialPort.DataBits = p.DataBits; serialPort.StopBits = p.StopBits; serialPort.Parity = p.Parity; } else { FCTB.AppendText("create fail"); } UpdateStyle(style); }
public DummyOutputWindow(CustomStyle style) { InitializeComponent(); UpdateStyle(style); CustomInitialize(); }