public void createWindowProfile(int activeObjectID)
 {
     if (windowProfile == null)
     {
         windowProfile = new WindowProfile(WindowProfileType.Team);
         windowProfile.setLocalization();
         if (activeObjectID == -1)
         {
             addToContext();
         }
         else
         {
             addToContext(activeObjectID);
         }
         windowProfile.Owner   = windowMain;
         windowProfile.Opacity = 0;
         windowProfile.Show();
         windowProfile.Closed += new EventHandler(windowProfile_Closed);
         globalFuncs.FadeInElement(windowProfile, 0.5, globalFuncs.windowFinalOpacity, true);
     }
     else
     {
         if (activeObjectID == -1)
         {
             addToContext();
         }
         else
         {
             addToContext(activeObjectID);
         }
     }
 }
예제 #2
0
 public void ButtonColumns_Click(object sender, RoutedEventArgs e)
 {
     if (windowQuickColumns == null)
     {
         windowQuickColumns = new WindowQuickColumns();
         windowQuickColumns.setColumns(this.dataGrid.Columns);
         windowQuickColumns.Owner   = this.windowMain;
         windowQuickColumns.Opacity = 0;
         windowQuickColumns.Show();
         windowQuickColumns.setPosition(ref this.ButtonColumns);
         windowQuickColumns.ButtonOK.Click += new RoutedEventHandler(windowQuickColumns_OK);
         windowQuickColumns.Closed         += new EventHandler(windowQuickColumns_Closed);
         globalFuncs.FadeInElement(windowQuickColumns, globalFuncs.windowDuration, globalFuncs.windowFinalOpacity, true);
     }
 }
예제 #3
0
        public void loadFM()
        {
            this.IsEnabled = false;
            this.reset(false);
            clearAllFields();

            WindowLoading windowLoading = new WindowLoading(this);

            windowLoading.Owner   = this;
            windowLoading.Opacity = 0;
            windowLoading.setLoading(globalFuncs.localization.WindowLoadingLabels[0]);
            windowLoading.Show();
            Storyboard s = globalFuncs.FadeInElement(windowLoading, globalFuncs.windowDuration, globalFuncs.windowFinalOpacity, false);

            s.Completed += delegate(object _sender, EventArgs _e) { windowLoadingFadeInCompleted(ref windowLoading); };
            s.Begin();
        }
        private void addCustomSetting()
        {
            globalFuncs.FadeInElement(this.ButtonWarning, globalFuncs.elementDuration, globalFuncs.elementFinalOpacity, true);
            settings.addCustomSetting();
            settings.settingSettings = false;
            PreferencesSettings preferencesSettings = settings.preferencesSettings[0];

            vm.setting.ComboBoxSelectedIndex = globalFuncs.getElementIndex(ref settings.settingNames, preferencesSettings.name);
            settings.settingSettings         = true;
        }