Пример #1
0
 public NewIncomeForm(worker wrkr)
 {
     InitializeComponent();
     cworker = wrkr;
     fltr.Add("Арт", string.Empty);
     fltr.Add("Наим", string.Empty);
 }
Пример #2
0
 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);
             }
         }
     }
 }
Пример #3
0
 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;
             }
         }
     }
 }
Пример #4
0
 public ClientsForm(worker wrkr)
 {
     cworker = wrkr;
     InitializeComponent();
 }
Пример #5
0
 public BaseForm(worker wrkr)
 {
     InitializeComponent();
     cworker = wrkr;
 }
Пример #6
0
 public MainForm(worker wrkr)
 {
     cworker = wrkr;
     InitializeComponent();
     this.Text = cworker.WorkerName;
 }
Пример #7
0
 public ClCustSetForm(worker wrkr)
 {
     InitializeComponent();
     cworker = wrkr;
 }
Пример #8
0
 public TableViewForm(worker wrkr, string viewname)
 {
     cworker = wrkr;
     InitializeComponent();
     Text = viewname;
 }
Пример #9
0
 public KursForm(worker cwrkr)
 {
     cworker = cwrkr;
     InitializeComponent();
 }