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