Inheritance: Caliburn.Micro.PropertyChangedBase, ICloneable, IConvertibleXml
示例#1
0
 public void NewBlankAppraisal()
 {
     var appraisal = new Appraisal("New appraisal", string.Empty);
     if (Plugin != null && Plugin.Appraisals != null) Plugin.Appraisals.Add(appraisal);
 }
示例#2
0
 public GotoDetailedViewEventArgs(Appraisal appraisal) {
     Appraisal = appraisal;
 }
示例#3
0
 private void OnGotoDetailedView(Appraisal appraisal)
 {
     var handler = GotoDetailedViewModel;
     if (handler != null) handler(this, new GotoDetailedViewEventArgs(appraisal));
 }
示例#4
0
 public ImageSource CreateNewMapAppraisal() {
     var appraisal = new Appraisal {
         Title = "New Appraisal",
         Criteria = new CriteriaList(functions, 0, 10),
         IsSelected = true
     };
     appraisal.FileName = FullFileName(appraisal.Id.ToString());
     var r = Screenshots.SaveImageOfControl(AppState.ViewDef.MapControl, appraisal.FileName);
     if (r == null) return null;
     Appraisals.Add(appraisal);
     if (SelectedAppraisals.IndexOf(appraisal)==-1) SelectedAppraisals.Add(appraisal);
     SelectedAppraisal = appraisal;
     return r;
 }
示例#5
0
 public ImageSource CreateNewAppraisal() {
     var appraisal = new Appraisal {
         Title = "New Appraisal",
         Criteria = new CriteriaList(functions, 0, 10)
     };
     appraisal.FileName = FullFileName(appraisal.Id.ToString());
     var r = Screenshots.SaveImageOfControl(Application.Current.MainWindow, appraisal.FileName);
     if (r == null) return null;
     Appraisals.Add(appraisal);
     SelectedAppraisals.Add(appraisal);
     return r;
 }
示例#6
0
 public object Clone()
 {
     var a = new Appraisal();
     a.FromXml(ToXml());
     return a;
 }