private void DialogExportProject_DialogCompleted(object sender, CreateDialogCompletedEventArgs e) { if (e.DialogResult == DialogResult.OK && e.ResultObject is ProjectExport result) { string exportDir = result.ExportProject(); Process.Start("explorer.exe", string.Format("/select,\"{0}\"", exportDir)); } }
private void CollectionDialog_DialogCompleted(object sender, CreateDialogCompletedEventArgs e) { if (e.DialogResult == DialogResult.OK && e.ResultObject is CollectionSet result) { TileManagerViewModel vm = DataContext as TileManagerViewModel; vm.LoadedCollections.Add(result); vm.SelectedCollection = result; } }
private void FloorPlanDialog_DialogCompleted(object sender, CreateDialogCompletedEventArgs e) { if (e.DialogResult == DialogResult.OK && e.ResultObject is FloorPlan result) { ProjectOverviewViewModel vm = DataContext as ProjectOverviewViewModel; vm.ProjectFile.FloorPlans.Add(new FloorAssignment(result, vm.ProjectFile)); OpenFloorPlan(result); } }
protected virtual void OnDialogCompleted(CreateDialogCompletedEventArgs e) { DialogCompleted?.Invoke(this, e); }