Пример #1
0
 protected virtual void OnButtonAddClicked(object sender, System.EventArgs e)
 {
     NewTagDialog dlg = new NewTagDialog ();
     if (dlg.Run () == (int)ResponseType.Ok) {
         if (dlg.Name.Length > 0) {
             tags.Add (new BugTag (dlg.TagName, dlg.Color));
             Fill ();
         }
     }
     dlg.Destroy ();
 }
Пример #2
0
        protected virtual void OnButtonAddClicked(object sender, System.EventArgs e)
        {
            NewTagDialog dlg = new NewTagDialog();

            if (dlg.Run() == (int)ResponseType.Ok)
            {
                if (dlg.Name.Length > 0)
                {
                    tags.Add(new BugTag(dlg.TagName, dlg.Color));
                    Fill();
                }
            }
            dlg.Destroy();
        }