private void butAddAccountsQB_Click(object sender, EventArgs e) { if (textCompanyFileQB.Text.Trim() == "") { MsgBox.Show(this, "Browse to your QuickBooks company file first."); return; } if (Prefs.UpdateString(PrefName.QuickBooksCompanyFile, textCompanyFileQB.Text)) { DataValid.SetInvalid(InvalidType.Prefs); } FormAccountPick FormA = new FormAccountPick(); FormA.IsQuickBooks = true; FormA.ShowDialog(); if (FormA.DialogResult != DialogResult.OK) { return; } if (FormA.SelectedAccountsQB != null) { listAccountsQB.AddRange(FormA.SelectedAccountsQB); FillAccountListQB(); } }
///<summary>Launches the account pick window and lets user choose several accounts. Returns null if anything went wrong or user canceled out.</summary> private List <string> GetAccountsQB() { if (textCompanyFileQB.Text.Trim() == "") { MsgBox.Show(this, "Browse to your QuickBooks company file first."); return(null); } if (Prefs.UpdateString(PrefName.QuickBooksCompanyFile, textCompanyFileQB.Text)) { DataValid.SetInvalid(InvalidType.Prefs); } FormAccountPick FormA = new FormAccountPick(); FormA.IsQuickBooks = true; FormA.ShowDialog(); if (FormA.DialogResult != DialogResult.OK) { return(null); } if (FormA.SelectedAccountsQB != null) { return(FormA.SelectedAccountsQB); } return(null); }
private void butAdd_Click(object sender, EventArgs e) { FormAccountPick FormA = new FormAccountPick(); FormA.ShowDialog(); if (FormA.DialogResult != DialogResult.OK) { return; } accountAL.Add(FormA.SelectedAccount.AccountNum); FillList(); }
/*private void comboAccount_SelectedIndexChanged(object sender,EventArgs e) { * FillAccount(); * }*/ private void butChange_Click(object sender, EventArgs e) { FormAccountPick FormA = new FormAccountPick(); FormA.ShowDialog(); if (FormA.DialogResult != DialogResult.OK) { return; } AccountPicked = FormA.SelectedAccount; FillAccount(); }
private void butChangeCash_Click(object sender, EventArgs e) { FormAccountPick FormA = new FormAccountPick(); FormA.ShowDialog(); if (FormA.DialogResult != DialogResult.OK) { return; } PickedPayAccountNum = FormA.SelectedAccount.AccountNum; textAccountCashInc.Text = Accounts.GetDescript(PickedPayAccountNum); }
private void butChange_Click(object sender,EventArgs e) { FormAccountPick FormA=new FormAccountPick(); FormA.ShowDialog(); if(FormA.DialogResult!=DialogResult.OK) { return; } AccountPicked=FormA.SelectedAccount.Clone(); textAccount.Text=AccountPicked.Description; butChange.Text=Lan.g(this,"Change"); }
/*private void comboAccount_SelectedIndexChanged(object sender,EventArgs e) { FillAccount(); }*/ private void butChange_Click(object sender,EventArgs e) { FormAccountPick FormA=new FormAccountPick(); FormA.ShowDialog(); if(FormA.DialogResult!=DialogResult.OK){ return; } AccountPicked=FormA.SelectedAccount; FillAccount(); }
private void butChangeCash_Click(object sender,EventArgs e) { FormAccountPick FormA=new FormAccountPick(); FormA.ShowDialog(); if(FormA.DialogResult!=DialogResult.OK) { return; } PickedPayAccountNum=FormA.SelectedAccount.AccountNum; textAccountCashInc.Text=Accounts.GetDescript(PickedPayAccountNum); }
///<summary>Launches the account pick window and lets user choose several accounts. Returns null if anything went wrong or user canceled out.</summary> private List<string> GetAccountsQB() { if(textCompanyFileQB.Text.Trim()=="") { MsgBox.Show(this,"Browse to your QuickBooks company file first."); return null; } if(Prefs.UpdateString(PrefName.QuickBooksCompanyFile,textCompanyFileQB.Text)) { DataValid.SetInvalid(InvalidType.Prefs); } FormAccountPick FormA=new FormAccountPick(); FormA.IsQuickBooks=true; FormA.ShowDialog(); if(FormA.DialogResult!=DialogResult.OK) { return null; } if(FormA.SelectedAccountsQB!=null) { return FormA.SelectedAccountsQB; } return null; }
private void butAdd_Click(object sender,EventArgs e) { FormAccountPick FormA=new FormAccountPick(); FormA.ShowDialog(); if(FormA.DialogResult!=DialogResult.OK) { return; } depAL.Add(FormA.SelectedAccount.AccountNum); FillDepList(); }
private void butChangeIncomeAccountQB_Click(object sender,EventArgs e) { if(textCompanyFileQB.Text.Trim()=="") { MsgBox.Show(this,"Browse to your QuickBooks company file first."); return; } if(Prefs.UpdateString(PrefName.QuickBooksCompanyFile,textCompanyFileQB.Text)) { DataValid.SetInvalid(InvalidType.Prefs); } FormAccountPick FormA=new FormAccountPick(); FormA.IsQuickBooks=true; FormA.ShowDialog(); if(FormA.DialogResult!=DialogResult.OK) { return; } if(FormA.SelectedAccountsQB!=null && FormA.SelectedAccountsQB.Count>0) { textIncomeAccountQB.Text=FormA.SelectedAccountsQB[0]; } }