示例#1
0
 public void Commit()
 {
     if (this.annotationsOptionsModel == null)
     {
         return;
     }
     this.configurationObject.Clear();
     this.annotationsOptionsModel.Save(this.configurationObject);
     this.annotationsOptionsModel   = (AnnotationsOptionsModel)null;
     this.annotationsOptionsControl = (AnnotationsOptionsControl)null;
     this.Apply();
 }
示例#2
0
 public void Cancel()
 {
     this.annotationsOptionsModel   = (AnnotationsOptionsModel)null;
     this.annotationsOptionsControl = (AnnotationsOptionsControl)null;
 }
 public AnnotationsOptionsControl(AnnotationsOptionsModel options)
 {
     this.DataContext = (object)options;
     this.InitializeComponent();
 }