Example #1
0
 public ShipmentReportForm(MDIForm mdiForm, int typeReport, int id)
 {
     InitializeComponent();
     this.MdiParent  = mdiForm;
     this.typeReport = typeReport;
     this.id         = id;
 }
 public PersonForm(MDIForm mdiForm) : base(mdiForm)
 {
     InitializeComponent();
     toolStrip               = toolStripPerson;
     parentType              = typeof(Person);
     toolAddPerson.Click    += OnAddClick;
     toolEditPerson.Click   += OnEditClick;
     toolDeletePerson.Click += OnDeleteClick;
 }
 public RackForm(MDIForm mdiForm) : base(mdiForm)
 {
     InitializeComponent();
     toolStrip             = toolStripRack;
     parentType            = typeof(Rack);
     toolAddRack.Click    += OnAddClick;
     toolEditRack.Click   += OnEditClick;
     toolDeleteRack.Click += OnDeleteClick;
 }
Example #4
0
 public CustomerForm(MDIForm mdiForm) : base(mdiForm)
 {
     InitializeComponent();
     toolStrip                 = toolStripCustomer;
     parentType                = typeof(Customer);
     toolAddCustomer.Click    += OnAddClick;
     toolEditCustomer.Click   += OnEditClick;
     toolDeleteCustomer.Click += OnDeleteClick;
 }
Example #5
0
 public VehicleForm(MDIForm mdiForm) : base(mdiForm)
 {
     InitializeComponent();
     toolStrip                = toolStripVehicle;
     parentType               = typeof(Vehicle);
     toolAddVehicle.Click    += OnAddClick;
     toolEditVehicle.Click   += OnEditClick;
     toolDeleteVehicle.Click += OnDeleteClick;
 }
 public OrderForm(MDIForm mdiForm) : base(mdiForm)
 {
     InitializeComponent();
     toolStrip              = toolStripStore;
     parentType             = typeof(Order);
     toolAddOrder.Click    += OnAddClick;
     toolEditOrder.Click   += OnEditClick;
     toolDeleteOrder.Click += OnDeleteClick;
 }
Example #7
0
 public ShipmentForm(MDIForm mdiForm) : base(mdiForm)
 {
     InitializeComponent();
     toolStrip                 = toolStripShipment;
     parentType                = typeof(Shipment);
     toolAddShipment.Click    += OnAddClick;
     toolEditShipment.Click   += OnEditClick;
     toolDeleteShipment.Click += OnDeleteClick;
 }
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            LoginDialog dialog = new LoginDialog();

            if (dialog.ShowDialog() == DialogResult.OK)
            {
                mdiForm = new MDIForm();
                Application.Run(mdiForm);
            }
            //if (dialog.DialogResult == DialogResult.OK) Application.Run(new MDIForm());
        }
 public MDIChildBase(MDIForm mdiForm)
 {
     InitializeComponent();
     this.MdiParent = mdiForm;
 }
 public BoxForm(MDIForm mdiForm) : base(mdiForm)
 {
     InitializeComponent();
     toolStrip  = toolStripBox;
     parentType = typeof(Box);
 }
Example #11
0
 public ProductForm(MDIForm mdiForm) : base(mdiForm)
 {
     InitializeComponent();
     toolStrip  = null;
     parentType = typeof(Product);
 }