示例#1
0
 public ProjectPage(SingleWindowGUI mainWindow)
 {
     XTMFGUI = mainWindow;
     this.XTMFGUI.Projects.ListChanged += new ListChangedEventHandler(Projects_ListChanged);
     InitializeComponent();
     this.Reset();
 }
示例#2
0
 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();
         }
     }
 }
示例#3
0
 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";
     }
 }
示例#4
0
 public ProjectPage(SingleWindowGUI mainWindow)
 {
     XTMFGUI = mainWindow;
     this.XTMFGUI.Projects.ListChanged += new ListChangedEventHandler( Projects_ListChanged );
     InitializeComponent();
     this.Reset();
 }
示例#5
0
 public ModelSystemPage(SingleWindowGUI xtmf)
 {
     this.XTMF = xtmf;
     InitializeComponent();
     this.ModelSystemInterface.Config = xtmf.XTMF.Configuration;
     this.Loaded += new RoutedEventHandler(ModelSystemPage_Loaded);
 }
示例#6
0
 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();
         }
     }
 }
示例#7
0
 public ViewRunsPage(SingleWindowGUI xtmf)
     : this()
 {
     this.XTMF = xtmf;
     this.Menu.CategorySelected += new Action <Category>(Menu_CategorySelected);
     this.Menu.NewCategory      += new Action <Category>(Menu_NewCategory);
 }
示例#8
0
 public ModelSystemPage(SingleWindowGUI xtmf)
 {
     this.XTMF = xtmf;
     InitializeComponent();
     this.ModelSystemInterface.Config = xtmf.XTMF.Configuration;
     this.Loaded += new RoutedEventHandler( ModelSystemPage_Loaded );
 }
示例#9
0
        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";
            }
        }
示例#10
0
 public ViewRunsPage(SingleWindowGUI xtmf)
     : this()
 {
     this.XTMF = xtmf;
     this.Menu.CategorySelected += new Action<Category>( Menu_CategorySelected );
     this.Menu.NewCategory += new Action<Category>( Menu_NewCategory );
 }
示例#11
0
 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;
 }
示例#12
0
 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;
 }
示例#13
0
 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"];
 }
示例#14
0
 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"];
 }
示例#15
0
 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"];
 }
示例#16
0
 public DeleteRunPage(SingleWindowGUI xmtfWindow)
 {
     this.XTMF = xmtfWindow;
     InitializeComponent();
 }
示例#17
0
 public NewProjectPage(SingleWindowGUI mainWindow)
 {
     InitializeComponent();
     this.XTMFWindow = mainWindow;
     this.Loaded    += new RoutedEventHandler(NewProjectPage_Loaded);
 }
示例#18
0
 public SaveProjectPage(SingleWindowGUI xtmf)
 {
     this.XTMF = xtmf;
     InitializeComponent();
     this.Loaded += new RoutedEventHandler( SaveProjectPage_Loaded );
 }
示例#19
0
 public DeleteProjectPage(SingleWindowGUI xmtfWindow)
 {
     this.XTMF = xmtfWindow;
     InitializeComponent();
     this.Loaded += new RoutedEventHandler( DeleteProjectPage_Loaded );
 }
示例#20
0
 public RemoveModelSystemPage(SingleWindowGUI XTMF)
 {
     this.XTMF = XTMF;
     InitializeComponent();
 }
示例#21
0
 public DeleteModelSystemPage(SingleWindowGUI xmtfWindow)
 {
     this.XTMF = xmtfWindow;
     InitializeComponent();
 }
示例#22
0
 public ViewRunPage(SingleWindowGUI xtmf)
     : this()
 {
     this.XTMF = xtmf;
 }
示例#23
0
 public SaveProjectPage(SingleWindowGUI xtmf)
 {
     this.XTMF = xtmf;
     InitializeComponent();
     this.Loaded += new RoutedEventHandler(SaveProjectPage_Loaded);
 }
示例#24
0
 public AboutPage(SingleWindowGUI XTMF)
     : this()
 {
 }
示例#25
0
 public SettingsPage(SingleWindowGUI xtmf)
 {
     this.XTMF = xtmf;
     InitializeComponent();
 }
示例#26
0
 public NewProjectPage(SingleWindowGUI mainWindow)
 {
     InitializeComponent();
     this.XTMFWindow = mainWindow;
     this.Loaded += new RoutedEventHandler( NewProjectPage_Loaded );
 }
示例#27
0
 public QuestionPage(SingleWindowGUI xtmf)
 {
     this.XTMF = xtmf;
     InitializeComponent();
     this.Loaded += new RoutedEventHandler(QuestionPage_Loaded);
 }
示例#28
0
 public DeleteProjectPage(SingleWindowGUI xmtfWindow)
 {
     this.XTMF = xmtfWindow;
     InitializeComponent();
     this.Loaded += new RoutedEventHandler(DeleteProjectPage_Loaded);
 }
示例#29
0
 public ViewRunPage(SingleWindowGUI xtmf)
     : this()
 {
     this.XTMF = xtmf;
 }
示例#30
0
 public AboutPage(SingleWindowGUI XTMF)
     : this()
 {
 }
示例#31
0
 public CopyFileConflictPage(SingleWindowGUI xtmf)
 {
     this.XTMF = xtmf;
     InitializeComponent();
     this.Loaded += new RoutedEventHandler( CopyFileConflictPage_Loaded );
 }
示例#32
0
 public CopyFileConflictPage(SingleWindowGUI xtmf)
 {
     this.XTMF = xtmf;
     InitializeComponent();
     this.Loaded += new RoutedEventHandler(CopyFileConflictPage_Loaded);
 }
示例#33
0
 public BooleanQuestionPage(SingleWindowGUI xtmf)
 {
     this.XTMF = xtmf;
     InitializeComponent();
     this.Loaded += new RoutedEventHandler( QuestionPage_Loaded );
 }
示例#34
0
 public ImportTypeSelectPage(SingleWindowGUI xtmf)
 {
     this.XTMF = xtmf;
     InitializeComponent();
     this.Loaded += new RoutedEventHandler(ImportTypeSelectPage_Loaded);
 }