Example #1
0
        public override void Select(List <Events> List, EventTransaction @object)
        {
            int Y = @object.Y;

            try
            {
                Button SQLButton;
                foreach (var i in List)
                {
                    SQLButton = new Button
                    {
                        Size     = new Size(@object.Width, @object.Height),
                        Location = new Point(@object.X, Y),
                        Font     = @object.Font,
                        Text     = i.GetName(),
                        Tag      = i
                    };
                    MainForm.Controls.Add(SQLButton);
                    Y += 95;
                    SQLButton.Click += Click;
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message.ToString(), ex.Source.ToString(), MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
Example #2
0
 public virtual void Select(List <Events> List, EventTransaction @object)
 {
     Console.WriteLine("Performing base class selecting all info from Events by loading form");
 }