Exemple #1
0
        public MvButton(Data.MvProject mvProject, DataRow row)
        {
            try
            {
                this.MvProject = mvProject;

                LocationOnGroupBox = new Point(5, 15);

                Info = new MvFeeder(row);

                SetButtonSize();
                this.BackColor = Color.Aquamarine;
                this.Location  = LocationOnGroupBox;

                string value = row["IsSelected"].ToString();

                this.TextAlign = ContentAlignment.TopLeft;

                this.SetButtonText();

                this.MouseDown        += new MouseEventHandler(Feeder_MouseDown);
                this.MouseMove        += new MouseEventHandler(Feeder_MouseMove);
                this.MouseUp          += new MouseEventHandler(Feeder_MouseUp);
                this.MouseDoubleClick += new MouseEventHandler(MvButton_MouseDoubleClick);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message + "\n" + ex.StackTrace);
            }
        }
Exemple #2
0
 public MvButton(DataRow row)
 {
     try
     {
         Info = new MvFeeder(row);
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message + "\n" + ex.StackTrace);
     }
 }
Exemple #3
0
 public Tag(int index)
 {
     this.Index   = index;
     this.IsEmpty = true;
     this.Feeder  = null;
 }