/// <summary> /// Window's Default Constructor /// </summary> /// <param name="w">THIS window</param> public WBinding(Window w, DBSolutionsClass s, bool e = false) { // Sets the variable "ThisWindow" to the actual Window ThisWindow = w; _Editing = e; _SelectedSolution = s; }
/// <summary> /// Default Constructor /// </summary> /// <param name="EditSol">A solution to Edit, or a New Blank Solution</param> /// <param name="Editing">This will be True if the solution is not a New Blank Solution</param> public SolutionsWindow(DBSolutionsClass EditSol, bool Editing = false) { InitializeComponent(); // Binds the View Model to the Window DataContext = new WBinding(this, EditSol, Editing); }