public BranchForm(Form f, int _branchId, String _actionType) { try { this.allBranchesForm = (AllBranchesForm)f; } catch (Exception) { this.allBranchesForm = new AllBranchesForm(); } this._branchId = _branchId; this._actionType = _actionType; InitializeComponent(); }
private void btnBranchInfo_Click(object sender, EventArgs e) { AllBranchesForm a = new AllBranchesForm(); a.ShowDialog(); }