コード例 #1
0
        public ListWindow()
        {
            InitializeComponent();
            ThemeManager.Current.ThemeSyncMode = ThemeSyncMode.SyncWithAppMode;
            ThemeManager.Current.SyncTheme();
            ListWindowViewModel vm = new ListWindowViewModel();

            this.DataContext = vm;
        }
コード例 #2
0
ファイル: ListWindowView.xaml.cs プロジェクト: panlukz/GGProj
        public ListWindowView(ListWindowViewModel viewModel)
        {
            this.ViewModel = viewModel;
            this.DataContext = ViewModel;

            InitializeComponent();

            //////////////////////////////////

            foreach (DataGridColumn column in Data.Columns)
            {
                if (!ViewModel.ListColumns.Contains(column.Header.ToString()))
                {
                    column.Visibility = Visibility.Hidden;
                }
            }
        }
コード例 #3
0
        public ListWindowView(ListWindowViewModel viewModel)
        {
            this.ViewModel   = viewModel;
            this.DataContext = ViewModel;

            InitializeComponent();

            //////////////////////////////////

            foreach (DataGridColumn column in Data.Columns)
            {
                if (!ViewModel.ListColumns.Contains(column.Header.ToString()))
                {
                    column.Visibility = Visibility.Hidden;
                }
            }
        }
コード例 #4
0
 public void OpenListWindow()
 {
     Debug.Log("AutLogin : Success");
     this.Dispatcher.BeginInvoke((Action)(() =>
     {
         var v = new ListWindow();
         Functions.ActiveWindow = v;
         var vm = new ListWindowViewModel();
         v.DataContext = vm;
         vm.OpenLoginDialog += (() =>
         {
             OpenLoginWindow();
             CloseActiveWindow(v);
         });
         vm.OpenWindow += (() =>
         {
             v.Show();
         });
         v.AppShutdown += AppShutdown;
         v.Show();
     }));
 }
コード例 #5
0
        public ListWindow()
        {
            InitializeComponent();

            ViewModel = new ListWindowViewModel();
        }