Example #1
0
 private bool InitLayout(string key)
 {
     if (key == "PlainLayout")
     {
         _mainWindow._layout = _layoutBuilder.GetPlainLayout();
         return(true);
     }
     if (key == "ThreeWingedUserLayout")
     {
         _mainWindow._layout = _layoutBuilder.GetThreeWingedUserLayout();
         return(true);
     }
     if (key == "ThreeWingedShopLayout")
     {
         _mainWindow._layout = _layoutBuilder.GetThreeWingedShopLayout();
         return(true);
     }
     return(false);
 }