예제 #1
0
 private void checkDBConf()
 {
     ConnectionProperty connProp = new ConnectionProperty();
     connProp.dataSource = this.txtDataSource.Text;
     connProp.userID = this.txtUserId.Text;
     connProp.password = this.txtPassword.Text;
     if (String.IsNullOrEmpty(connProp.dataSource) || String.IsNullOrEmpty(connProp.userID)
         || String.IsNullOrEmpty(connProp.password))
     {
         this.message.Text = "Please complete all text box above";
         tabGenerateTableData.SelectedTab = tabPage1;
     }
     else
     {
         ConnectionManager.initialDBConn(connProp);
     }
 }
예제 #2
0
 set => SetValue(ConnectionProperty, value);
예제 #3
0
 private string GetString(ConnectionProperty flag)
 {
     return(Library.Api.GetConnectionVariableAsString(Client, flag));
 }
예제 #4
0
 private double GetDouble(ConnectionProperty flag)
 {
     return(Library.Api.GetConnectionVariableAsDouble(Client, flag));
 }
예제 #5
0
 private ulong GetUInt64(ConnectionProperty flag)
 {
     return(Library.Api.GetConnectionVariableAsUInt64(Client, flag));
 }
 public DatabaseConnectionViewModel(BaseViewModel parent) : base(parent)
 {
     Connection = new ConnectionProperty();
 }