Esempio n. 1
0
        public MainWindow()
        {
            InitializeComponent();

            downloadCounterPountTxt.Visibility = (Visibility)Enum.Parse(Visibility.GetType(), BaseViewModel.Instance.CurrentApplicationSettings.AllowCounterPoint);
            CPSalesTxt.Visibility = (Visibility)Enum.Parse(Visibility.GetType(), BaseViewModel.Instance.CurrentApplicationSettings.AllowCounterPoint);

            homeExpand.Visibility        = (Visibility)Enum.Parse(Visibility.GetType(), BaseViewModel.Instance.CurrentApplicationSettings.AllowWareHouse);
            Ex9.Visibility               = (Visibility)Enum.Parse(Visibility.GetType(), BaseViewModel.Instance.CurrentApplicationSettings.AllowXBond);
            AsycudaDoc.Visibility        = (Visibility)Enum.Parse(Visibility.GetType(), BaseViewModel.Instance.CurrentApplicationSettings.AllowAsycudaManager);
            TariffCodes.Visibility       = (Visibility)Enum.Parse(Visibility.GetType(), BaseViewModel.Instance.CurrentApplicationSettings.AllowTariffCodes);
            viewContainersTxt.Visibility = (Visibility)Enum.Parse(Visibility.GetType(), BaseViewModel.Instance.CurrentApplicationSettings.AllowContainers);
        }
 void Ex02(Visibility value, bool expected)
 {
     Expect($"the converted value should be {expected}", () => Equals(Converter.ConvertBack(value, value.GetType(), null, null), expected));
 }