Inheritance: ViewModelBase
Example #1
0
        public bool Equals(ExportOption p)
        {
            // If parameter is null return false:
            if (p == null)
            {
                return(false);
            }

            // Return true if the fields match:
            return((ExportType == p.ExportType) && (MapType == p.MapType) &&
                   (ShowDescription == p.ShowDescription) && (ShowPages == p.ShowPages) &&
                   (ShowImage == p.ShowImage) && (ShowVideo == p.ShowVideo) &&
                   (SelectedNodes.ToJson() == p.SelectedNodes.ToJson()));
        }
Example #2
0
        public bool Equals(ExportOption p)
        {
            // If parameter is null return false:
            if (p == null)
            {
                return false;
            }

            // Return true if the fields match:
            return ((ExportType == p.ExportType) && (MapType == p.MapType) && 
                (ShowDescription == p.ShowDescription) && (ShowPages == p.ShowPages) && 
                (ShowImage == p.ShowImage) && (ShowVideo == p.ShowVideo) && 
                (SelectedNodes.ToJson() == p.SelectedNodes.ToJson()));
        }
 public ExportOptionDialog(ExportType exporyType, MapType mapType)
 {
     InitializeComponent();
     DataContext = new ExportOption(exporyType, mapType);
 }