Esempio n. 1
0
 public FrmMain(IUserService userService, FrmRegister frmRegister, FrmCompanies frmCompanies, FrmLogin frmLogin, FrmCompanyAdd frmCompanyAdd, FrmCompanyEdit frmCompanyEdit)
 {
     this.userService    = userService;
     this.frmCompanies   = frmCompanies;
     this.frmRegister    = frmRegister;
     this.frmLogin       = frmLogin;
     this.frmCompanyAdd  = frmCompanyAdd;
     this.frmCompanyEdit = frmCompanyEdit;
     InitializeComponent();
     this.frmRegister.MdiParent   = this;
     this.frmRegister.FormClosed += FrmRegister_FormClosed;
     this.frmCompanies.MdiParent  = this;
     this.frmLogin.MdiParent      = this;
     this.frmLogin.MasterForm     = this;
 }
Esempio n. 2
0
        public FrmMain(IUserService userService, FrmRegister frmRegister, FrmCompanies frmCompanies,
                       FrmLogin frmLogin, FrmCompanyAdd frmCompanyAdd, FrmCompanyUpdate frmCompanyUpdate)
        {
            this.userService      = userService;
            this.frmRegister      = frmRegister;
            this.frmCompanies     = frmCompanies;
            this.frmLogin         = frmLogin;
            this.frmCompanyAdd    = frmCompanyAdd;
            this.frmCompanyUpdate = frmCompanyUpdate;
            InitializeComponent();
            this.frmRegister.MdiParent   = this;
            this.frmRegister.FormClosed += FrmRegister_FormClosed;
            this.frmLogin.MdiParent      = this; //formun içinde gelmesini sağlıyor
            this.frmLogin.MasterForm     = this;
            this.frmCompanies.MdiParent  = this;
            this.frmCompanyAdd.MdiParent = this;


            this.frmCompanyUpdate.MdiParent = this;
        }
Esempio n. 3
0
 public FrmMain(IUserService userService, FrmRegister frmRegister, FrmCompanies frmCompanies, FrmLogin FrmLogin)
 {
     this.FrmLogin                = FrmLogin;
     this.userService             = userService;
     this.frmCompanies            = frmCompanies;
     this.frmRegister             = frmRegister;
     this.frmRegister.FormClosed += FrmRegister_FormClosed;
     InitializeComponent();//mdiparent initial de belirlendiği için ! bundan sonra ekleeme yapıldı!!!!!!!
     this.frmRegister.MdiParent  = this;
     this.frmCompanies.MdiParent = this;
     this.FrmLogin.MdiParent     = this;
     this.FrmLogin.MasterForm    = this;
 }
Esempio n. 4
0
        public FrmMain(IUserService userService, FrmRegister frmRegister, FrmCompanies frmCompanies, FrmLogin frmLogin)
        {
            this.frmLogin     = frmLogin;
            this.frmCompanies = frmCompanies;
            this.frmRegister  = frmRegister;
            this._userService = userService;
            InitializeComponent();
            this.frmRegister.MdiParent = this;

            this.frmCompanies.MdiParent = this;
            this.frmLogin.MdiParent     = this;
            this.frmLogin.MasterForm    = this;
        }
Esempio n. 5
0
 public FrmRegister(IUserService userService, FrmLogin frmLogin)
 {
     this.frmLogin    = frmLogin;
     this.userService = userService;
     InitializeComponent();
 }