public Form1() { InitializeComponent(); this.Text = "Categories"; this.Left = 10; this.Top = 10; this.Invalidate(); button2.Hide(); form = new Form2(this); form.Activate(); form.Show(); form.Hide(); form.Left = this.Left; form.Top = this.Top; form.Invalidate(); editor = new FormCategoryEditor(this); editor.Activate(); editor.Show(); editor.Hide(); editor.Left = this.Left; editor.Top = this.Top; editor.Invalidate(); info = Informer.getInstance(); refreshInfo(); }
public Form2(Form1 form) { InitializeComponent(); this.Text = "Products"; this.form = form; editor = new FormProductEditor(this); editor.Activate(); editor.Show(); editor.Hide(); editor.Left = this.Left; editor.Top = this.Top; editor.Invalidate(); button2.Hide(); info = Informer.getInstance(); refreshInfo(); }
public FormProductEditor(Form2 form) { this.form = form; info = Informer.getInstance(); InitializeComponent(); }
public FormCategoryEditor(Form1 form) { this.form = form; info = Informer.getInstance(); InitializeComponent(); }