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;
        }
예제 #2
0
 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;
 }
예제 #3
0
        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);
        }
예제 #4
0
 public DummyOutputWindow(CustomStyle style)
 {
     InitializeComponent();
     UpdateStyle(style);
     CustomInitialize();
 }