Example #1
0
 private void initializeEdit()
 {
     try
     {
         _EditControl   = new EditControl(brdHost);
         _Edit          = _EditControl.EditBox;
         _Edit.ReadOnly = true;
         var clr = PNSkinlessDetails.DefColor;
         _EditControl.WinForm.BackColor = System.Drawing.Color.FromArgb(clr.A, clr.R, clr.G, clr.B);
     }
     catch (Exception ex)
     {
         PNStatic.LogException(ex);
     }
 }
Example #2
0
 private void initializeEdit()
 {
     try
     {
         _EditControl = new EditControl(brdHost);
         _Edit = _EditControl.EditBox;
         _Edit.ReadOnly = true;
         var brush = brdHost.Background as SolidColorBrush;
         if (brush == null) return;
         _EditControl.WinForm.BackColor = System.Drawing.Color.FromArgb(255, brush.Color.R, brush.Color.G,
             brush.Color.B);
     }
     catch (Exception ex)
     {
         PNStatic.LogException(ex);
     }
 }
Example #3
0
 private void initializeEdit()
 {
     try
     {
         _EditControl   = new EditControl(brdHost);
         _Edit          = _EditControl.EditBox;
         _Edit.ReadOnly = true;
         var brush = brdHost.Background as SolidColorBrush;
         if (brush == null)
         {
             return;
         }
         _EditControl.WinForm.BackColor = System.Drawing.Color.FromArgb(255, brush.Color.R, brush.Color.G,
                                                                        brush.Color.B);
     }
     catch (Exception ex)
     {
         PNStatic.LogException(ex);
     }
 }
Example #4
0
 private void initializeEdit()
 {
     try
     {
         _EditControl = new EditControl(brdHost);
         _Edit = _EditControl.EditBox;
         _Edit.ReadOnly = true;
         var clr = PNSkinlessDetails.DefColor;
         _EditControl.WinForm.BackColor = System.Drawing.Color.FromArgb(clr.A, clr.R, clr.G, clr.B);
     }
     catch (Exception ex)
     {
         PNStatic.LogException(ex);
     }
 }
Example #5
0
 private void initializeEdit()
 {
     try
     {
         _EditControl = new EditControl(brdHost);
         _EditPreview = _EditControl.EditBox;
         _EditPreview.ReadOnly = true;
         _EditPreview.ScrollBars = System.Windows.Forms.RichTextBoxScrollBars.Both;
         if (PNStatic.Settings.Config.CPUseCustPvwColor)
         {
             _EditControl.WinForm.BackColor = System.Drawing.Color.FromArgb(PNStatic.Settings.Config.CPPvwColor.A,
                 PNStatic.Settings.Config.CPPvwColor.R, PNStatic.Settings.Config.CPPvwColor.G,
                 PNStatic.Settings.Config.CPPvwColor.B);
         }
         else
         {
             var clr = PNSkinlessDetails.DefColor;
             _EditControl.WinForm.BackColor = System.Drawing.Color.FromArgb(clr.A, clr.R, clr.G, clr.B);
         }
     }
     catch (Exception ex)
     {
         PNStatic.LogException(ex);
     }
 }