Exemplo n.º 1
0
 public void LoadListItemNavigate()
 {
     StringResources.ApplyLanguage(Enums.ALL_ENUM.Language.VN);
     ListItemNavigate = new ObservableCollection <ItemNavigate>()
     {
         new ItemNavigate()
         {
             DisplayName = StringResources.Find("HOME"),
             Type        = Enums.ALL_ENUM.ViewType.HOME,
             Icon        = MaterialDesignThemes.Wpf.PackIconKind.HomeOutline,
             IsSelected  = true
         },
         new ItemNavigate()
         {
             DisplayName = StringResources.Find("PRODUCT"),
             Type        = Enums.ALL_ENUM.ViewType.PRODUCT,
             Icon        = MaterialDesignThemes.Wpf.PackIconKind.PackageVariantClosed
         },
         new ItemNavigate()
         {
             DisplayName = StringResources.Find("CATEGORYS"),
             Type        = Enums.ALL_ENUM.ViewType.CATEGORY,
             Icon        = MaterialDesignThemes.Wpf.PackIconKind.Buffer
         },
         new ItemNavigate()
         {
             DisplayName = StringResources.Find("UNITS"),
             Type        = Enums.ALL_ENUM.ViewType.UNIT,
             Icon        = MaterialDesignThemes.Wpf.PackIconKind.Blur
         },
         new ItemNavigate()
         {
             DisplayName = StringResources.Find("SUPPLIER"),
             Type        = Enums.ALL_ENUM.ViewType.SUPPLIER,
             Icon        = MaterialDesignThemes.Wpf.PackIconKind.HumanHandsup
         },
         new ItemNavigate()
         {
             DisplayName = StringResources.Find("ACCOUNTS"),
             Type        = Enums.ALL_ENUM.ViewType.ACCOUNT,
             Icon        = MaterialDesignThemes.Wpf.PackIconKind.AccountBoxOutline
         },
     };
 }
Exemplo n.º 2
0
 public InitViewmodel()
 {
     StringResources.ApplyLanguage(ALL_ENUM.LANGUAGE.VN);
     new DisconnectedDatabaseWindow();
     Loaded();
 }
Exemplo n.º 3
0
 public void ChangeLanguageToVietNamese()
 {
     StringResources.ApplyLanguage(Enums.ALL_ENUM.LANGUAGE.VN);
 }
Exemplo n.º 4
0
 public void ChangeLanguageToVietEnglish()
 {
     StringResources.ApplyLanguage(Enums.ALL_ENUM.LANGUAGE.EN);
 }
Exemplo n.º 5
0
 public DisconnectedDatabaseViewmodel()
 {
     StringResources.ApplyLanguage(Enums.ALL_ENUM.LANGUAGE.VN);
     StateWindow = WindowState.Normal;
     GetListServerName();
 }