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); } }
set => SetValue(ConnectionProperty, value);
private string GetString(ConnectionProperty flag) { return(Library.Api.GetConnectionVariableAsString(Client, flag)); }
private double GetDouble(ConnectionProperty flag) { return(Library.Api.GetConnectionVariableAsDouble(Client, flag)); }
private ulong GetUInt64(ConnectionProperty flag) { return(Library.Api.GetConnectionVariableAsUInt64(Client, flag)); }
public DatabaseConnectionViewModel(BaseViewModel parent) : base(parent) { Connection = new ConnectionProperty(); }