コード例 #1
0
ファイル: My_ApplicationTest.cs プロジェクト: ase-lab/eGrid
        public void My_ApplicationConstructorTest()
        {
            Window startupWindow = new Window();
            My_Application target = new My_Application(startupWindow);

            // nothing to test really
        }
コード例 #2
0
ファイル: eGridWindow.xaml.cs プロジェクト: ase-lab/eGrid
        void MainWindow_Loaded(object sender, RoutedEventArgs e)
        {
            var app = new My_Application(this);

            this.Width = System.Windows.SystemParameters.VirtualScreenWidth;
            this.Height = System.Windows.SystemParameters.VirtualScreenHeight;
            this.Left = 0;
            this.Top = 0;
            this.ResizeMode = ResizeMode.NoResize;

            LayoutRoot.Children.Add(app);
        }
コード例 #3
0
ファイル: My_ApplicationTest.cs プロジェクト: ase-lab/eGrid
 public void getMainWindowTest()
 {
     Window startupWindow = new Window();
     My_Application target = new My_Application(startupWindow);
     Assert.AreEqual(target.getMainWindow(), startupWindow);
 }