public AccountPropertiesAddChangeForm(AccountProperty accProp) : this() { this.m_AccountProperty = accProp; }
private void tbsAdd_Click(object sender, System.EventArgs e) { AccountProperty accProp = new AccountProperty { AccountId = this.m_Account.Id }; AccountPropertiesAddChangeForm form = new AccountPropertiesAddChangeForm(accProp); form.set_Text("Добавление параметра"); if (form.ShowDialog(this) == System.Windows.Forms.DialogResult.OK) { this.bsAccountProperties.set_DataSource(AccountProperty.FindByPropertyId(accProp.AccountId, (long) accProp.PropertyId)); this.bsAccountProperties.set_Sort(this.bsAccountProperties.get_Sort()); this.UpdateBindingSourceAccountProperties(); } }
public AccountPropertiesAddChangeForm() { this.m_AccountProperty = AccountProperty.Null; this.InitializeComponent(); this.set_Font(Manager.WindowFont); }