Esempio n. 1
0
 protected override void OnStartup(StartupEventArgs e)
 {
     //DevExpress.Xpf.Core.ApplicationThemeHelper.ApplicationThemeName =
     //    DevExpress.Xpf.Core.Theme.Office2016ColorfulFullName;
     /// DevExpress.Xpf.Core.ThemeManager.ApplicationThemeName = DevExpress.Xpf.Core.Theme.Office2016ColorfulFullName;
     ///   protected override void OnStartup(StartupEventArgs e) {
     ApplicationThemeHelper.ApplicationThemeName = DevExpress.Xpf.Core.Theme.NoneName;
     ApplicationThemeHelper.SaveApplicationThemeName();
     base.OnStartup(e);
 }
Esempio n. 2
0
        /// <summary>
        /// 窗口关闭要做的事情
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void DXRibbonWindow_Closing(object sender, System.ComponentModel.CancelEventArgs e)
        {
            MessageBoxResult result = MessageBox.Show("确定退出程序?", "提示", MessageBoxButton.YesNo, MessageBoxImage.Warning, MessageBoxResult.No);

            ApplicationThemeHelper.SaveApplicationThemeName();
            if (result == MessageBoxResult.No)
            {
                e.Cancel = true;
            }
            else
            {
                //TaskForm.Close_Click();
                IList <PropertyNodeItem> items = tvProperty.ItemsSource as IList <PropertyNodeItem>;
                if (items != null)
                {
                    PropertyNodeItemCustom.SaveDMToHibernate(items);
                    HibernateUtils.GetInstance().CloseSession();
                }
                System.Diagnostics.Process.GetCurrentProcess().Kill();
            }
        }
Esempio n. 3
0
 protected override void OnExit(ExitEventArgs e)
 {
     base.OnExit(e);
     ApplicationThemeHelper.SaveApplicationThemeName();
 }
 private void MainWindow_OnClosing(object sender, CancelEventArgs e)
 {
     ApplicationThemeHelper.SaveApplicationThemeName();
 }
Esempio n. 5
0
 private void ThemeManager_ApplicationThemeChanged(DependencyObject sender, ThemeChangedRoutedEventArgs e)
 {
     ApplicationThemeHelper.SaveApplicationThemeName();
 }
Esempio n. 6
0
 private void ApplicationExit(object sender, ExitEventArgs e)
 {
     ApplicationThemeHelper.SaveApplicationThemeName();
 }