Пример #1
0
 public GraphVyrabPage()
 {
     InitializeComponent();
     CurrentAnswer = new GraphVyrabAnswer();
     context = new GraphVyrabDomainContext();
     pnlSettings.DataContext = CurrentAnswer;
     settings = new SettingsGraphVyab();
     settings.Second = 30;
     settings.AutoRefresh = true;
     pnlRefresh.DataContext = settings;
     timer = new DispatcherTimer();
     timer.Tick += new EventHandler(timer_Tick);
     timer.Interval = new TimeSpan(0, 0, 1);
 }
Пример #2
0
 public GraphVyrabRGEPage()
 {
     InitializeComponent();
     CurrentAnswer = new FullGraphVyrab();
     CurrentAnswer.Napor = 21;
     context = new GraphVyrabDomainContext();
     pnlSettings.DataContext = CurrentAnswer;
     settings = new SettingsGraphVyab();
     chbIsSteppedPBR.IsChecked = true;
     settings.Second = 60;
     settings.AutoRefresh = false;
     pnlRefresh.DataContext = settings;
     timer = new DispatcherTimer();
     timer.Tick += new EventHandler(timer_Tick);
     timer.Interval = new TimeSpan(0, 0, 1);
     rusaWindow = new RUSAWindow();
     rusaWindow.Closed += new EventHandler(rusaWindow_Closed);
 }