public MainWindow()
 {
     InitializeComponent();
     Window.WindowStartupLocation = WindowStartupLocation.CenterScreen;
     FrontEndHelper.SetMainWindow(this);
     InitializeMainWindowCanvas();
 }
        public Admin_window()
        {
            InitializeComponent();
            FrontEndHelper.SetAdminWindow(this);
            CustomImage logo = new CustomImage("resources/images/logo.png");

            this.Logo.Source = logo.GetImage().Source;
        }
Beispiel #3
0
        public void ReserveButton_Click(object sender, RoutedEventArgs args)
        {
            if (ActiveUser == null)
            {
                MessageBox.Show("Please Login");
                return;
            }
            Button reserveButton = (Button)sender;
            int    index         = (int)reserveButton.Tag;
            RoomsListShowCanvas roomListShowCanvas = (RoomsListShowCanvas)CurrentCanvas;

            FrontEndHelper.CreateReservePopupWindow(roomListShowCanvas, index);
        }
 public void Room_Add_Button_Click(object sender, RoutedEventArgs args)
 {
     FrontEndHelper.CreateAddRoomPopupWindow();
 }
Beispiel #5
0
 public MainWindow()
 {
     InitializeComponent();
     FrontEndHelper.SetMainWindow(this);
     InitializeInitialCanvases();
 }