public void NewBlankAppraisal() { var appraisal = new Appraisal("New appraisal", string.Empty); if (Plugin != null && Plugin.Appraisals != null) Plugin.Appraisals.Add(appraisal); }
public GotoDetailedViewEventArgs(Appraisal appraisal) { Appraisal = appraisal; }
private void OnGotoDetailedView(Appraisal appraisal) { var handler = GotoDetailedViewModel; if (handler != null) handler(this, new GotoDetailedViewEventArgs(appraisal)); }
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; }
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; }
public object Clone() { var a = new Appraisal(); a.FromXml(ToXml()); return a; }