public ProjectPage(SingleWindowGUI mainWindow) { XTMFGUI = mainWindow; this.XTMFGUI.Projects.ListChanged += new ListChangedEventHandler(Projects_ListChanged); InitializeComponent(); this.Reset(); }
public RunModelSystemPage(SingleWindowGUI xtmf) { this.XTMF = xtmf; this.ProgressReports = this.XTMF.XTMF.Configuration.ProgressReports; InitializeComponent(); this.ProgressReports.ListChanged += new ListChangedEventHandler( ProgressReports_ListChanged ); this.ProgressReports.BeforeRemove += new EventHandler<ListChangedEventArgs>( ProgressReports_BeforeRemove ); this.SubProgressBars.ListChanged += new ListChangedEventHandler( SubProgressBars_ListChanged ); this.SubProgressBars.BeforeRemove += new EventHandler<ListChangedEventArgs>( SubProgressBars_BeforeRemove ); this.Timer = new DispatcherTimer(); this.Timer.Interval = TimeSpan.FromMilliseconds( 1000 / 30 ); this.Timer.Tick += new EventHandler( Timer_Tick ); this.Loaded += new RoutedEventHandler( RunModelSystemPage_Loaded ); this.Unloaded += new RoutedEventHandler( RunModelSystemPage_Unloaded ); this.ProjectDirectory = System.IO.Path.GetFullPath( this.XTMF.XTMF.Configuration.ProjectDirectory ); if ( Environment.OSVersion.Platform == PlatformID.Win32NT ) { var major = Environment.OSVersion.Version.Major; if ( major > 6 || ( major >= 6 && Environment.OSVersion.Version.Minor >= 1 ) ) { Windows7OrAbove = true; this.TaskbarInformation = this.XTMF.TaskbarItemInfo = new TaskbarItemInfo(); } } }
public StartingPage(SingleWindowGUI mainWindow) { this.XTMFGUI = mainWindow; InitializeComponent(); if ( !System.IO.File.Exists( UpdateProgram ) ) { this.UpdateButton.Visibility = System.Windows.Visibility.Hidden; } else { this.UpdateButton.Visibility = System.Windows.Visibility.Visible; } var versionFileName = System.IO.Path.Combine(System.IO.Path.GetDirectoryName(Assembly.GetEntryAssembly().CodeBase.Replace("file:///","")), "version.txt"); if ( File.Exists( versionFileName ) ) { var text = File.ReadAllText( versionFileName ); text = text.Replace("\r\n", ""); this.VersionText.Text = "version: " + text; } else { this.VersionText.Text = "version: Unknown"; } }
public ProjectPage(SingleWindowGUI mainWindow) { XTMFGUI = mainWindow; this.XTMFGUI.Projects.ListChanged += new ListChangedEventHandler( Projects_ListChanged ); InitializeComponent(); this.Reset(); }
public ModelSystemPage(SingleWindowGUI xtmf) { this.XTMF = xtmf; InitializeComponent(); this.ModelSystemInterface.Config = xtmf.XTMF.Configuration; this.Loaded += new RoutedEventHandler(ModelSystemPage_Loaded); }
public RunModelSystemPage(SingleWindowGUI xtmf) { this.XTMF = xtmf; this.ProgressReports = this.XTMF.XTMF.Configuration.ProgressReports; InitializeComponent(); this.ProgressReports.ListChanged += new ListChangedEventHandler(ProgressReports_ListChanged); this.ProgressReports.BeforeRemove += new EventHandler <ListChangedEventArgs>(ProgressReports_BeforeRemove); this.SubProgressBars.ListChanged += new ListChangedEventHandler(SubProgressBars_ListChanged); this.SubProgressBars.BeforeRemove += new EventHandler <ListChangedEventArgs>(SubProgressBars_BeforeRemove); this.Timer = new DispatcherTimer(); this.Timer.Interval = TimeSpan.FromMilliseconds(1000 / 30); this.Timer.Tick += new EventHandler(Timer_Tick); this.Loaded += new RoutedEventHandler(RunModelSystemPage_Loaded); this.Unloaded += new RoutedEventHandler(RunModelSystemPage_Unloaded); this.ProjectDirectory = System.IO.Path.GetFullPath(this.XTMF.XTMF.Configuration.ProjectDirectory); if (Environment.OSVersion.Platform == PlatformID.Win32NT) { var major = Environment.OSVersion.Version.Major; if (major > 6 || (major >= 6 && Environment.OSVersion.Version.Minor >= 1)) { Windows7OrAbove = true; this.TaskbarInformation = this.XTMF.TaskbarItemInfo = new TaskbarItemInfo(); } } }
public ViewRunsPage(SingleWindowGUI xtmf) : this() { this.XTMF = xtmf; this.Menu.CategorySelected += new Action <Category>(Menu_CategorySelected); this.Menu.NewCategory += new Action <Category>(Menu_NewCategory); }
public ModelSystemPage(SingleWindowGUI xtmf) { this.XTMF = xtmf; InitializeComponent(); this.ModelSystemInterface.Config = xtmf.XTMF.Configuration; this.Loaded += new RoutedEventHandler( ModelSystemPage_Loaded ); }
public StartingPage(SingleWindowGUI mainWindow) { this.XTMFGUI = mainWindow; InitializeComponent(); if (!System.IO.File.Exists(UpdateProgram)) { this.UpdateButton.Visibility = System.Windows.Visibility.Hidden; } else { this.UpdateButton.Visibility = System.Windows.Visibility.Visible; } var versionFileName = System.IO.Path.Combine(System.IO.Path.GetDirectoryName(Assembly.GetEntryAssembly().CodeBase.Replace("file:///", "")), "version.txt"); if (File.Exists(versionFileName)) { var text = File.ReadAllText(versionFileName); text = text.Replace("\r\n", ""); this.VersionText.Text = "version: " + text; } else { this.VersionText.Text = "version: Unknown"; } }
public ViewRunsPage(SingleWindowGUI xtmf) : this() { this.XTMF = xtmf; this.Menu.CategorySelected += new Action<Category>( Menu_CategorySelected ); this.Menu.NewCategory += new Action<Category>( Menu_NewCategory ); }
public EditModelSystemPage(SingleWindowGUI xtmf) { this.XTMF = xtmf; InitializeComponent(); this.ModelSystemViewer.Config = xtmf.XTMF.Configuration; this.Loaded += new RoutedEventHandler( EditModelSystemPage_Loaded ); this.ModelSystemViewer.ModuleRepository = this.XTMF.XTMF.Configuration.ModelRepository; }
public EditModelSystemPage(SingleWindowGUI xtmf) { this.XTMF = xtmf; InitializeComponent(); this.ModelSystemViewer.Config = xtmf.XTMF.Configuration; this.Loaded += new RoutedEventHandler(EditModelSystemPage_Loaded); this.ModelSystemViewer.ModuleRepository = this.XTMF.XTMF.Configuration.ModelRepository; }
public SelectModelSystemPage(SingleWindowGUI xtmf) { this.XTMF = xtmf; InitializeComponent(); this.MSContextMenu = new ModelSystemContextMenu(); this.MSContextMenu.RemovePressed += new Action(MSContextMenu_RemovePressed); this.MSContextMenu.RenamePressed += new Action <string>(MSContextMenu_RenamePressed); this.BaseAddButtonHeight = this.AddNewMSButton.Height; this.CancelIcon = new BitmapImage(new Uri("pack://application:,,,/XTMF.Gui;component/Resources/112_ArrowReturnLeft_Blue_24x24_72.png")); this.RemoveIcon = new BitmapImage(new Uri("pack://application:,,,/XTMF.Gui;component/Images/delete.png")); this.SelectBlue = (Color)Application.Current.Resources["SelectionBlue"]; this.WarningRed = (Color)Application.Current.Resources["WarningRed"]; }
public ProjectSettingsPage(SingleWindowGUI xtmfWindow) { InitializeComponent(); this.XTMF = xtmfWindow; this.MSContextMenu = new ModelSystemContextMenu( true ); this.MSContextMenu.RenamePressed += new Action<string>( MSContextMenu_RenamePressed ); this.MSContextMenu.RemovePressed += new Action( MSContextMenu_RemovePressed ); this.MSContextMenu.SaveAsModelSystemPressed += new Action( MSContextMenu_SaveAsModelSystemPressed ); this.Loaded += new RoutedEventHandler( ProjectSettingsPage_Loaded ); this.CancelIcon = new BitmapImage( new Uri( "pack://application:,,,/XTMF.Gui;component/Resources/112_ArrowReturnLeft_Blue_24x24_72.png" ) ); this.RemoveIcon = new BitmapImage( new Uri( "pack://application:,,,/XTMF.Gui;component/Images/delete.png" ) ); this.SelectBlue = (Color)Application.Current.Resources["SelectionBlue"]; this.WarningRed = (Color)Application.Current.Resources["WarningRed"]; }
public ProjectSettingsPage(SingleWindowGUI xtmfWindow) { InitializeComponent(); this.XTMF = xtmfWindow; this.MSContextMenu = new ModelSystemContextMenu(true); this.MSContextMenu.RenamePressed += new Action <string>(MSContextMenu_RenamePressed); this.MSContextMenu.RemovePressed += new Action(MSContextMenu_RemovePressed); this.MSContextMenu.SaveAsModelSystemPressed += new Action(MSContextMenu_SaveAsModelSystemPressed); this.Loaded += new RoutedEventHandler(ProjectSettingsPage_Loaded); this.CancelIcon = new BitmapImage(new Uri("pack://application:,,,/XTMF.Gui;component/Resources/112_ArrowReturnLeft_Blue_24x24_72.png")); this.RemoveIcon = new BitmapImage(new Uri("pack://application:,,,/XTMF.Gui;component/Images/delete.png")); this.SelectBlue = (Color)Application.Current.Resources["SelectionBlue"]; this.WarningRed = (Color)Application.Current.Resources["WarningRed"]; }
public DeleteRunPage(SingleWindowGUI xmtfWindow) { this.XTMF = xmtfWindow; InitializeComponent(); }
public NewProjectPage(SingleWindowGUI mainWindow) { InitializeComponent(); this.XTMFWindow = mainWindow; this.Loaded += new RoutedEventHandler(NewProjectPage_Loaded); }
public SaveProjectPage(SingleWindowGUI xtmf) { this.XTMF = xtmf; InitializeComponent(); this.Loaded += new RoutedEventHandler( SaveProjectPage_Loaded ); }
public DeleteProjectPage(SingleWindowGUI xmtfWindow) { this.XTMF = xmtfWindow; InitializeComponent(); this.Loaded += new RoutedEventHandler( DeleteProjectPage_Loaded ); }
public RemoveModelSystemPage(SingleWindowGUI XTMF) { this.XTMF = XTMF; InitializeComponent(); }
public DeleteModelSystemPage(SingleWindowGUI xmtfWindow) { this.XTMF = xmtfWindow; InitializeComponent(); }
public ViewRunPage(SingleWindowGUI xtmf) : this() { this.XTMF = xtmf; }
public SaveProjectPage(SingleWindowGUI xtmf) { this.XTMF = xtmf; InitializeComponent(); this.Loaded += new RoutedEventHandler(SaveProjectPage_Loaded); }
public AboutPage(SingleWindowGUI XTMF) : this() { }
public SettingsPage(SingleWindowGUI xtmf) { this.XTMF = xtmf; InitializeComponent(); }
public NewProjectPage(SingleWindowGUI mainWindow) { InitializeComponent(); this.XTMFWindow = mainWindow; this.Loaded += new RoutedEventHandler( NewProjectPage_Loaded ); }
public QuestionPage(SingleWindowGUI xtmf) { this.XTMF = xtmf; InitializeComponent(); this.Loaded += new RoutedEventHandler(QuestionPage_Loaded); }
public DeleteProjectPage(SingleWindowGUI xmtfWindow) { this.XTMF = xmtfWindow; InitializeComponent(); this.Loaded += new RoutedEventHandler(DeleteProjectPage_Loaded); }
public CopyFileConflictPage(SingleWindowGUI xtmf) { this.XTMF = xtmf; InitializeComponent(); this.Loaded += new RoutedEventHandler( CopyFileConflictPage_Loaded ); }
public CopyFileConflictPage(SingleWindowGUI xtmf) { this.XTMF = xtmf; InitializeComponent(); this.Loaded += new RoutedEventHandler(CopyFileConflictPage_Loaded); }
public BooleanQuestionPage(SingleWindowGUI xtmf) { this.XTMF = xtmf; InitializeComponent(); this.Loaded += new RoutedEventHandler( QuestionPage_Loaded ); }
public ImportTypeSelectPage(SingleWindowGUI xtmf) { this.XTMF = xtmf; InitializeComponent(); this.Loaded += new RoutedEventHandler(ImportTypeSelectPage_Loaded); }