Exemplo n.º 1
0
 protected override void OnStartup(StartupEventArgs args)
 {
     base.OnStartup(args);
     // Test whether or not to train the Machine by looking for the existence of various files.
     bool train = !Directory.Exists(FileUtilities.DirectoryName) || !File.Exists(FileUtilities.DirectoryName + "\\" + FileUtilities.AssetIndexData) ||
         !File.Exists(FileUtilities.DirectoryName + "\\" + FileUtilities.CoreImageData);
     UIKind uikind = UIKind.UIMachine;
     if (uikind == UIKind.UIMachine)
     {
         MachineStartPage m = new MachineStartPage(train, uikind);
         m.Show();
     }
     else if (uikind == UIKind.UISamaritan)
     {
         SamaritanStartPage ssp = new SamaritanStartPage(train, uikind);
         ssp.Show();
     }
 }
Exemplo n.º 2
0
        protected override void OnStartup(StartupEventArgs args)
        {
            base.OnStartup(args);
            // Test whether or not to train the Machine by looking for the existence of various files.
            bool train = !Directory.Exists(FileUtilities.DirectoryName) || !File.Exists(FileUtilities.DirectoryName + "\\" + FileUtilities.AssetIndexData) ||
                         !File.Exists(FileUtilities.DirectoryName + "\\" + FileUtilities.CoreImageData);
            UIKind uikind = UIKind.UISamaritan;

            if (uikind == UIKind.UIMachine)
            {
                MachineStartPage m = new MachineStartPage(train, uikind);
                m.Show();
            }
            else if (uikind == UIKind.UISamaritan)
            {
                SamaritanStartPage ssp = new SamaritanStartPage(train, uikind);
                ssp.Show();
            }
        }