private void Execute_Load(object o) { MessegBoxs view = new MessegBoxs(); MessegeViewModel viewModel = new MessegeViewModel(System.Windows.Visibility.Visible, System.Windows.Visibility.Visible, System.Windows.Visibility.Hidden); view.DataContext = viewModel; if (viewModel._OK == null) { viewModel._OK = new Action(view.Close); } if (viewModel._NO == null) { viewModel._NO = new Action(view.Close); } view.ShowDialog(); if (viewModel.is_ok) { Load(); if (stream != null) { _is_start = false; Value_IQ(); Output_List(); Update(); Start(); } } }
private void Execute_Exit(object o) { MessegBoxs view = new MessegBoxs(); MessegeViewModel viewModel = new MessegeViewModel(System.Windows.Visibility.Visible, System.Windows.Visibility.Visible, System.Windows.Visibility.Hidden); view.DataContext = viewModel; if (viewModel._OK == null) { viewModel._OK = new Action(view.Close); } if (viewModel._NO == null) { viewModel._NO = new Action(view.Close); } view.ShowDialog(); if (viewModel.is_ok) { Exit(); } }