Example #1
0
 public FrmOption(bool gridEnable, GridLayer.eStyle gridStyle, Color gridColor, Color BgColor, Color penColor, float penWidth)
 {
     InitializeComponent();
     GridEnable     = gridEnable;
     GridStyle      = gridStyle;
     GridColor      = gridColor;
     BackGroudColor = BgColor;
     PenColor       = penColor;
     PenWidth       = penWidth;
 }
Example #2
0
 public FrmOption(bool gridEnable, GridLayer.eStyle gridStyle, Color gridColor, Color BgColor, Color penColor, Color nullStorageColor, Color emptyShelfStorageColor, Color fullShelfStorageColor, float penWidth)
 {
     InitializeComponent();
     GridEnable             = gridEnable;
     GridStyle              = gridStyle;
     GridColor              = gridColor;
     BackGroudColor         = BgColor;
     PenColor               = penColor;
     PenWidth               = penWidth;
     NullStorageColor       = nullStorageColor;
     EmptyShelfStorageColor = emptyShelfStorageColor;
     FullShelfStorageColor  = fullShelfStorageColor;
 }
Example #3
0
 private void btnOK_Click(object sender, EventArgs e)
 {
     try
     {
         BackGroudColor    = clorPk_bg.Color;
         GridEnable        = ckeEnableGrid.Checked;
         GridColor         = clorPk_grid.Color;
         GridStyle         = rdoLines.Checked ? GridLayer.eStyle.Lines : GridLayer.eStyle.Dots;
         PenColor          = clorPk_pen.Color;
         PenWidth          = (float)Convert.ToDouble(txtPenSize.Text);
         this.DialogResult = DialogResult.OK;
     }
     catch (Exception ex)
     { MsgBox.ShowError(ex.Message); }
 }