Exemplo n.º 1
0
        public static void LoadThisObject <T>(T objt, string NameModule = "", string Discription = "", int?iModuelID = null) where T : new()
        {
            MainViewModel pObject = (MainViewModel)Objw.DataContext;

            pObject.DisplayName = NameModule;
            pObject.SelectToEdit(objt);
            TextBlock VShortDescription = (TextBlock)Objw.FindName("ShortDescription");

            VShortDescription.Text = Discription;
        }
Exemplo n.º 2
0
        internal void GetTabablzData(out string header0, out IEnumerable <TabablzControl> tctrl)
        {
            MetroWindow    wnd = (MetroWindow)App.Current.MainWindow;
            TabablzControl tc  = (TabablzControl)wnd.FindName("InitialTabablzControl");

            TabContent itc0 = (TabContent)tc.SelectedItem;

            header0 = itc0.Header;
            tctrl   = TabablzControl.GetLoadedInstances();
        }
Exemplo n.º 3
0
        protected override void OnViewLoaded(object view)
        {
            var v = view as MetroWindow;

            v.Title = this.ApplicationTitle;

            if (v != null)
            {
                _shellWindow = v;
                _tray        = _shellWindow.FindName("DFTrayIcon") as TaskbarIcon;
            }

            base.OnViewLoaded(view);
        }