示例#1
0
        protected virtual void OnButtonAddBranchClicked(object sender, System.EventArgs e)
        {
            var dlg = new EditBranchDialog(repo, null, true);

            try {
                if (MessageService.RunCustomDialog(dlg) == (int)ResponseType.Ok)
                {
                    repo.CreateBranch(dlg.BranchName, dlg.TrackSource);
                    FillBranches();
                }
            } finally {
                dlg.Destroy();
            }
        }