public TakeQuizUserControl(char course, MainWindow mainInstance) { InitializeComponent(); this.course = course; //Gets the course passed by the window and sets it this.mainInstance = mainInstance; //Gets the window instance and sets it SetSplashLayout(); }
public Game(MainWindow w, int timeToPlay) { InitializeComponent(); InitAssets(); window = w; this.timeToPlay = timeToPlay; }
public UserPreferencesUserControl(String gridToShow, MainWindow mainInstance) { InitializeComponent(); this.gridToShow = gridToShow; this.mainInstance = mainInstance; ShowCorrectGrid(); SetContent(); }
public LoginRegisterUserControl(MainWindow mainInstance, String userType) { InitializeComponent(); this.mainInstance = mainInstance; this.userType = userType; CheckUserType(); SetVisibilityRegisterButton(false); LoadUsers(); Loaded += LoginRegisterUserControl_Loaded; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.AppWindow = ((Quiz.MainWindow)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.AppWindow = ((Quiz.MainWindow)(target)); #line 16 "..\..\MainWindow.xaml" this.AppWindow.Deactivated += new System.EventHandler(this.AppWindow_Deactivated); #line default #line hidden #line 17 "..\..\MainWindow.xaml" this.AppWindow.Activated += new System.EventHandler(this.AppWindow_Activated); #line default #line hidden return; } this._contentLoaded = true; }