Ejemplo n.º 1
0
        public MainWindow()
        {
            InitializeComponent();

            // Настройки окна
            this.Height          = 550;
            this.Width           = 1100;
            this.BorderThickness = new Thickness(2, 10, 2, 2);

            this.WindowStyle           = WindowStyle.None;
            this.ResizeMode            = ResizeMode.NoResize;
            this.WindowStartupLocation = WindowStartupLocation.CenterScreen;

            // Инициализация изображения
            imgMedicine.Source = WPF_Misc.ImageSourceFromBitmap(DoctorSimulator.Properties.Resources.ddd);
        }
Ejemplo n.º 2
0
 void BtnLoadGame_Click(object sender, RoutedEventArgs e)
 {
     WPF_Misc.OpenPauseWindow(this, new LoadWindow(new HomeWindow(this), this));
 }
Ejemplo n.º 3
0
        void BtnStartGame_Click(object sender, RoutedEventArgs e)
        {
            WPF_Misc.OpenNewWindow(this, new HomeWindow(this));

            this.Close();
        }