Exemplo n.º 1
0
 public WatchVariable(string variable, DataBaseWork DataBase)
 {
     this.Variable = variable;
     this.DataBase = DataBase;
     InitializeComponent();
     Updater.Start();
     VariableWatchBox.Text = String.Format("Переменная {0} из базы данных {1}", variable, DataBase.DataBaseName);
 }
Exemplo n.º 2
0
 public DBSettings(string DataBase)
 {
     InitializeComponent();
     this.DataBase = new DataBaseWork(DataBase);
     f             = new DBSettingsDesigner(this.DataBase);
     p             = f.EditPanel;
     p.Top         = 0;
     p.Left        = 0;
     p.Height      = this.Height;
     p.Width       = this.Width;
     p.MaximumSize = new Size(0, 0);
     p.Size        = this.Size;
     p.Anchor      = (AnchorStyles.Left | AnchorStyles.Top);
     Controls.Add(p);
 }
Exemplo n.º 3
0
 //=====================================================================================================================================================================
 private void _AddressBook_Load(object sender, EventArgs e)
 {
     DBWorker = new DataBaseWork();
     GetContactsCount();
 }
Exemplo n.º 4
0
 public DBDesigner(string DBName)
 {
     this.CurrentDB = new DataBaseWork(DBName);
     InitializeComponent();
     SortingTypeBox.SelectedIndex = 0;
 }
Exemplo n.º 5
0
 public DBSettingsDesigner(DataBaseWork DataBase)
 {
     this.DataBase = DataBase;
     InitializeComponent();
     UpdateData();
 }