Exemplo n.º 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);
     }
 }
Exemplo n.º 2
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);
     }
 }