Exemple #1
0
		public void SetDefault(ModelVM model)
		{
			if (model != null)
				Default = model;
		}
Exemple #2
0
		public void EditModel(ModelVM model)
		{
			if (model != null)
				model.EditDialog();
		}
Exemple #3
0
		static public bool Run(ModelVM modelVM) => new ModelView(modelVM).ShowDialog() == true;
Exemple #4
0
		public void NewModel()
		{
			var model = new ModelVM(this, new Model());
			if (model.EditDialog())
				Models.Add(model);
		}
Exemple #5
0
		ModelView(ModelVM modelVM)
		{
			InitializeComponent();
			ModelVM = modelVM;
		}