Пример #1
0
 public ChecksForm(MainForm form)
 {
     InitializeComponent();
     mainform = form;
     db = mainform.DataAppCore;
     currentModel = new Check();
     //set data grid settings
     ControlFactory.SetDataGridSettings(this.dataGridViewMainSearchResult);
 }
 public ExpensesForm(MainForm form)
 {
     InitializeComponent();
     mainform = form;
     db = mainform.DataAppCore;
     currentExpense = new Expense();
     //set data grid settings
     ControlFactory.SetDataGridSettings(this.dataGridView1);
 }
 public static LoginForm CreateLoginForm(MainForm form)
 {
     return new LoginForm(form) {
         StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen,
         ShowInTaskbar = false,
         ShowIcon = false,
         ControlBox=false,
         Text = "USER LOGIN"
     };
 }
 public static ProjectsForm CreateProjectsForm(MainForm form)
 {
     return new ProjectsForm(form)
     {
         StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen,
         ShowInTaskbar = false,
         ShowIcon = false,
         ControlBox = false,
         WindowState=System.Windows.Forms.FormWindowState.Maximized,
         Text = "PROJECTS"
     };
 }
 public static ExpensesForm CreateExpensesForm(MainForm form)
 {
     return new ExpensesForm(form)
     {
         StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen,
         ShowInTaskbar = false,
         ShowIcon = false,
         ControlBox = false,
         WindowState = System.Windows.Forms.FormWindowState.Maximized,
         Text = "EXPENSES"
     };
 }
 public static CompaniesForm CreateCompaniesForm(MainForm form)
 {
     return new CompaniesForm(form)
     {
         StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen,
         ShowInTaskbar = false,
         ShowIcon = false,
         ControlBox = false,
         WindowState = System.Windows.Forms.FormWindowState.Maximized,
         Text="COMPANIES"
     };
 }
Пример #7
0
 public LoginForm(MainForm form)
 {
     InitializeComponent();
     this.mainform = form;
 }
 public CompaniesForm(MainForm form)
 {
     InitializeComponent();
     mainform = form;
 }
Пример #9
0
 public ExpensesForm(MainForm form)
 {
     InitializeComponent();
     mainForm = form;
 }