Пример #1
0
 public FrmCompanyEdit(ICompanyService companyService, IActivityService activityService, FrmActivityAdd frmActivityAdd)
 {
     this.companyService  = companyService;
     this.activityService = activityService;
     this.frmActivityAdd  = frmActivityAdd;
     InitializeComponent();
     this.frmActivityAdd.MdiParent  = this.MdiParent;
     this.frmActivityAdd.MasterForm = this;
 }
Пример #2
0
 public FrmCompanies(ICompanyService companyService, FrmCompanyAdd frmCompanyAdd, FrmCompanyUpdate frmCompanyUpdate)
 {
     this.companyService   = companyService;
     this.frmCompanyAdd    = frmCompanyAdd;
     this.frmCompanyUpdate = frmCompanyUpdate;
     InitializeComponent();
     this.frmCompanyAdd.MdiParent     = this.MdiParent;
     this.frmCompanyAdd.MasterForm    = this;
     this.frmCompanyUpdate.MdiParent  = this.MdiParent;
     this.frmCompanyUpdate.MasterForm = this;
 }
Пример #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;
 }
Пример #4
0
 public FrmMain(IUserService userService, FrmRegister frmRegister, FrmCompanies frmCompanies, FrmLogin frmLogin)
 {
     this.userService  = userService;
     this.frmRegister  = frmRegister;
     this.frmCompanies = frmCompanies;
     this.frmLogin     = frmLogin;
     InitializeComponent();
     this.frmRegister.MdiParent   = this;
     this.frmRegister.FormClosed += FrmRegister_FormClosed;
     this.frmCompanies.MdiParent  = this;
     this.frmLogin.MdiParent      = this;
     this.frmLogin.MasterForm     = this;
 }
Пример #5
0
 public FrmCompanyUpdate(ICompanyService companyService, IActivityService activityService, FrmActivitiyAdd
                         frmActivitiyAdd, FrmActivitiyEdit frmActivitiyEdit)
 {
     this.frmActivitiyAdd  = frmActivitiyAdd;
     this.frmActivitiyEdit = frmActivitiyEdit;
     this.companyService   = companyService;
     this.activityService  = activityService;
     InitializeComponent();
     this.frmActivitiyAdd.MdiParent   = this.MdiParent;
     this.frmActivitiyAdd.MasterForm  = this;
     this.frmActivitiyEdit.MdiParent  = this.MdiParent;
     this.frmActivitiyEdit.MasterForm = this;
 }
Пример #6
0
        public FrmMain(IUserService userService, FrmRegister frmRegister, FrmCompanies frmCompanies, FrmLogin frmLogin, FrmCompaniesAdd frmCompaniesAdd, FrmCompaniesEdit frmCompaniesEdit, FrmActivityAdd frmActivityAdd)
        {
            this.frmLogin         = frmLogin;
            this.userService      = userService;
            this.frmRegister      = frmRegister;
            this.frmCompanies     = frmCompanies;
            this.frmCompaniesAdd  = frmCompaniesAdd;
            this.frmCompaniesEdit = frmCompaniesEdit;
            this.frmActivityAdd   = frmActivityAdd;


            InitializeComponent();

            this.frmRegister.MdiParent  = this;
            frmRegister.FormClosed     += FrmRegister_FormClosed;
            this.frmCompanies.MdiParent = this;
            this.frmLogin.MdiParent     = this;
            frmLogin.MasterForm         = this;
        }
Пример #7
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;
        }
Пример #8
0
 public FrmLogin(IUserService userService, FrmCompanies frmCompanies)
 {
     this.userService = userService;
     InitializeComponent();
 }