Esempio n. 1
0
 public Ev()
 {
     InitializeComponent();
     state                  = State.None;
     Pic.MouseDown         += new MouseEventHandler(Gr_MouseDown);
     Pic.MouseUp           += new MouseEventHandler(Gr_MouseUp);
     Pic.MouseMove         += new MouseEventHandler(Gr_MouseMove);
     BgC                    = Pic.BackColor;
     b                      = new Bitmap(this.ClientSize.Width, this.ClientSize.Height);
     this.Resize           += new EventHandler(this_Resize);
     Pic.Paint             += new PaintEventHandler(this_Paint);
     this.autoredraw        = true;
     Pic.MouseClick        += new MouseEventHandler(Ev_MouseClick);
     brushCl                = new SolidBrush(BgC);
     this.KeyUp            += new KeyEventHandler(Ev_KeyUp);
     this.tTaskLabel.KeyUp += new KeyEventHandler(tTaskLabel_KeyUp);
     wF                     = new WF();
 }
Esempio n. 2
0
 public Ev(CDTData _data)
 {
     InitializeComponent();
     state                  = State.None;
     Pic.MouseDown         += new MouseEventHandler(Gr_MouseDown);
     Pic.MouseUp           += new MouseEventHandler(Gr_MouseUp);
     Pic.MouseMove         += new MouseEventHandler(Gr_MouseMove);
     BgC                    = Pic.BackColor;
     b                      = new Bitmap(this.ClientSize.Width, this.ClientSize.Height);
     this.Resize           += new EventHandler(this_Resize);
     Pic.Paint             += new PaintEventHandler(this_Paint);
     this.autoredraw        = true;
     Pic.MouseClick        += new MouseEventHandler(Ev_MouseClick);
     brushCl                = new SolidBrush(BgC);
     this.KeyUp            += new KeyEventHandler(Ev_KeyUp);
     this.tTaskLabel.KeyUp += new KeyEventHandler(tTaskLabel_KeyUp);
     wF                     = new WF(_data.DrTable["sysTableID"].ToString());
     lTask                  = wF.lTask;
     lAction                = wF.lAction;
     DrawAll();
     tWFName.Text = wF.WFName;
 }