Exemplo n.º 1
0
        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();
        }
Exemplo n.º 2
0
        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();
        }
Exemplo n.º 3
0
 public FormProductEditor(Form2 form)
 {
     this.form = form;
     info      = Informer.getInstance();
     InitializeComponent();
 }
Exemplo n.º 4
0
 public FormCategoryEditor(Form1 form)
 {
     this.form = form;
     info      = Informer.getInstance();
     InitializeComponent();
 }