示例#1
0
        void OnLinkClicked(object sender, EventArgs e)
        {
            Annotation a    = ((object[])((LinkLabel)sender).Tag)[0] as Annotation;
            ChorusUser user = ((object[])((LinkLabel)sender).Tag)[1] as ChorusUser;

            a.SetStatusToClosed(user.Name);
        }
 public Control CreateWinFormsControl(string contentXml, Annotation parentAnnotation, ChorusUser user)
 {
     var element = XElement.Parse(contentXml);
     var link = new LinkLabel();
     link.Tag = new object[] { parentAnnotation, user };
     link.Text = element.Value + ": when you click this, the annotation should close";
     link.Click += new EventHandler(OnLinkClicked);
     return link;
 }
 public void Setup()
 {
     TheUser = new ChorusUser("joe");
 }
 public void Setup()
 {
     TheUser = new ChorusUser("joe");
 }
示例#5
0
        public Control CreateWinFormsControl(string contentXml, Annotation parentAnnotation, ChorusUser user)
        {
            var element = XElement.Parse(contentXml);
            var link    = new LinkLabel();

            link.Tag    = new object[] { parentAnnotation, user };
            link.Text   = element.Value + ": when you click this, the annotation should close";
            link.Click += new EventHandler(OnLinkClicked);
            return(link);
        }
 public void Setup()
 {
     TheUser = new ChorusUser("joe");
     _folder = new TemporaryFolder("NotesModelTests_" + Path.GetRandomFileName());
 }