public NewIncomeForm(worker wrkr) { InitializeComponent(); cworker = wrkr; fltr.Add("Арт", string.Empty); fltr.Add("Наим", string.Empty); }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); if (ConnectionString != string.Empty) { using (worker cworker = new worker()) { if (cworker.ID > 0) { using (KursForm kf = new KursForm(cworker)) { if (kf.ShowDialog() == DialogResult.OK) { using (MainForm mf = new MainForm(cworker)) { mf.ShowDialog(); } } } } else { MessageBox.Show("Неверно определен пользователь!", string.Empty, MessageBoxButtons.OK, MessageBoxIcon.Error); } } } }
public TableViewForm(worker wrkr, string viewname, string sqlcomm) : this(wrkr,viewname) { using (SQLiteConnection c = new SQLiteConnection(Program.ConnectionString)) { c.Open(); using (SQLiteCommand cmd = new SQLiteCommand(sqlcomm, c)) { using (SQLiteDataAdapter da = new SQLiteDataAdapter(cmd)) { da.Fill(ds, viewname); bs = new BindingSource(ds, viewname); tableViewDGV.DataSource = bs; tableViewBN.BindingSource = bs; } } } }
public ClientsForm(worker wrkr) { cworker = wrkr; InitializeComponent(); }
public BaseForm(worker wrkr) { InitializeComponent(); cworker = wrkr; }
public MainForm(worker wrkr) { cworker = wrkr; InitializeComponent(); this.Text = cworker.WorkerName; }
public ClCustSetForm(worker wrkr) { InitializeComponent(); cworker = wrkr; }
public TableViewForm(worker wrkr, string viewname) { cworker = wrkr; InitializeComponent(); Text = viewname; }
public KursForm(worker cwrkr) { cworker = cwrkr; InitializeComponent(); }