Exemplo n.º 1
0
        //App app;
        
        //Stand Alone
        public MainWindow()
        {
            InitializeComponent();
            vm = new MainViewModel(new FileDialogService(), view1, this);
            DataContext = vm;

            loadTeethNumberToChart();
            reset();

            Loaded += new RoutedEventHandler(OnLoaded);
            _propertyGrid.PropertyValueChanged += new Xceed.Wpf.Toolkit.PropertyGrid.PropertyValueChangedEventHandler(_propertyGrid_PropertyValueChanged);

            measurementForm = new MeasurementForm(this);
            //app = Application.Current as App;
            
            //mForm = new Forms.MeasurementForm(new Treatment(), new SmileFile());
            navigateButton("demo");
            ExportRawMenuItem.IsEnabled = true;
        }
Exemplo n.º 2
0
        //INTEGRATION with Dashboard
        public MainWindow(Treatment treatment, SmileFile file, bool duplicate)
        {
            InitializeComponent();

            //app = Application.Current as App;

            if (App.patient == null)
            {
                MessageBox.Show("Select Patient First!");
                //show PatientForm
                this.Close();
                return;
            }
            if (file == null)
            {
                MessageBox.Show("Select Raw File !");
                //show File List
                this.Close();
                return;
            }

            vm = new MainViewModel(new FileDialogService(), view1, treatment, file, duplicate, this);
            DataContext = vm;

            loadTeethNumberToChart();

            Loaded += new RoutedEventHandler(OnLoaded);
            _propertyGrid.PropertyValueChanged += new Xceed.Wpf.Toolkit.PropertyGrid.PropertyValueChangedEventHandler(_propertyGrid_PropertyValueChanged);

            mForm = new Forms.MeasurementForm(treatment,file, this);
            navigateButton("integration");
        }