Exemple #1
0
 private void ButtonAdd_Click(object sender, EventArgs e)
 {
     if (this.mTabControlMain.SelectedTab == this.mTabPageIssues)
     {
         var lNewIssueControlHost = new NewIssueControlHost(this.Project);
         lNewIssueControlHost.IssueCreated += (s, args) => this.OpenIssue(args.Value);
         this.NavigationController.PushControlHost(lNewIssueControlHost);
     }
     else
     {
         System.Diagnostics.Debug.Assert(this.mTabControlMain.SelectedTab == this.mTabPageMilestones);
     }
 }
 private void ButtonAdd_Click(object sender, EventArgs e)
 {
     if (this.mTabControlMain.SelectedTab == this.mTabPageIssues)
     {
         var lNewIssueControlHost = new NewIssueControlHost(this.Project);
         lNewIssueControlHost.IssueCreated += (s, args) => this.OpenIssue(args.Value);
         this.NavigationController.PushControlHost(lNewIssueControlHost);
     }
     else
     {
         System.Diagnostics.Debug.Assert(this.mTabControlMain.SelectedTab == this.mTabPageMilestones);
     }
 }