void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.pnlAddFamily = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 2:
                this.sprAddFamily = ((System.Windows.Controls.Separator)(target));
                return;

            case 3:
                this.btnAddFamily = ((System.Windows.Controls.Button)(target));

            #line 56 "..\..\pageTaxonomicHierarchy.xaml"
                this.btnAddFamily.Click += new System.Windows.RoutedEventHandler(this.btnAddFamily_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.pnlAddGenus = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 5:
                this.sprAddGenus = ((System.Windows.Controls.Separator)(target));
                return;

            case 6:
                this.btnAddGenus = ((System.Windows.Controls.Button)(target));

            #line 115 "..\..\pageTaxonomicHierarchy.xaml"
                this.btnAddGenus.Click += new System.Windows.RoutedEventHandler(this.btnAddGenus_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.pnlAddSpecie = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 8:
                this.sprAddSpecie = ((System.Windows.Controls.Separator)(target));
                return;

            case 9:
                this.btnAddSpecie = ((System.Windows.Controls.Button)(target));

            #line 179 "..\..\pageTaxonomicHierarchy.xaml"
                this.btnAddSpecie.Click += new System.Windows.RoutedEventHandler(this.btnAddSpecie_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 2
0
        private void initializeContextMenus()
        {
            MenuItem playItem = new MenuItem();
            playItem.Header = "Play";
            playItem.Click += PlaySongFromMenu_Click;

            Separator sep = new Separator();

            MenuItem removeItem = new MenuItem();
            removeItem.Header = "Remove";
            removeItem.Click += removeItem_Click;

            allMusicMenu = new ContextMenu();
            allMusicMenu.Items.Add(playItem);
            allMusicMenu.Items.Add(sep);
            allMusicMenu.Items.Add(removeItem);
            //playlist context menu

            MenuItem playlistPlayItem = new MenuItem();
            playlistPlayItem.Header = "Play";
            playlistPlayItem.Click += PlaySongFromMenu_Click;
            Separator Playlistsep = new Separator();

            MenuItem removeItemFromPlaylist = new MenuItem();
            removeItemFromPlaylist.Click += removeItemFromPlaylist_Click;
            removeItemFromPlaylist.Header = "Remove From Playlist";

            playlistMenu = new ContextMenu();
            playlistMenu.Items.Add(playlistPlayItem);
            playlistMenu.Items.Add(Playlistsep);
            playlistMenu.Items.Add(removeItemFromPlaylist);
        }
Ejemplo n.º 3
0
        public IEnumerable <object> BuildItems(Codon codon, object owner)
        {
            var workbench = Altaxo.Current.GetService <IWorkbench>();

            int windowCount = workbench.ViewContentCollection.Count;

            if (windowCount == 0)
            {
                return(new object[] { });
            }
            var items = new object[windowCount + 1];

            items[0] = new System.Windows.Controls.Separator();
            int i = 1;

            foreach (var window in workbench.ViewContentCollection)
            {
                var item = new System.Windows.Controls.MenuItem()
                {
                    IsChecked   = workbench.ActiveViewContent == window,
                    IsCheckable = true,
                    Header      = StringParser.Parse(window.Title).Replace("_", "__")
                };
                item.Click += delegate
                {
                    window.IsSelected = true;
                };
                items[i++] = item;
            }
            return(items);
        }
Ejemplo n.º 4
0
		public DialogBackend()
		{
			cmd = new DelegatedCommand<WpfDialogButton> (OnButtonClicked);

			this.leftButtonContainer.ItemsPanel = leftPanelTemplate;
			this.leftButtonContainer.ItemTemplateSelector = new DialogButtonTemplateSelector(ButtonStyle, cmd);
			this.leftButtonContainer.ItemsSource = this.leftButtons;
			this.leftButtonContainer.HorizontalAlignment = HorizontalAlignment.Left;

			this.rightButtonContainer.ItemsPanel = rightPanelTemplate;
			this.rightButtonContainer.ItemTemplateSelector = new DialogButtonTemplateSelector(ButtonStyle, cmd);
			this.rightButtonContainer.ItemsSource = this.rightButtons;
			this.rightButtonContainer.HorizontalAlignment = HorizontalAlignment.Right;

			this.rootPanel.RowDefinitions.Add (new RowDefinition { Height = new GridLength (0, GridUnitType.Auto) });
			separator = new SWC.Separator ();
			separator.Visibility = Visibility.Collapsed;
			Grid.SetRow (separator, 2);
			this.rootPanel.Children.Add (separator);

			this.rootPanel.RowDefinitions.Add (new RowDefinition { Height = new GridLength(0, GridUnitType.Auto) });

			this.buttonContainer.ColumnDefinitions.Add(new ColumnDefinition { Width = GridLength.Auto  });
			this.buttonContainer.ColumnDefinitions.Add(new ColumnDefinition ());
			this.buttonContainer.ColumnDefinitions.Add(new ColumnDefinition { Width = GridLength.Auto  });
			Grid.SetColumn(this.leftButtonContainer, 0);
			Grid.SetColumn(this.rightButtonContainer, 2);
			this.buttonContainer.Children.Add(this.leftButtonContainer);
			this.buttonContainer.Children.Add(this.rightButtonContainer);

			Grid.SetRow (buttonContainer, 3);
			this.rootPanel.Children.Add (buttonContainer);
			buttonContainer.Visibility = Visibility.Collapsed;
		}
Ejemplo n.º 5
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.pnlAddGenus = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 2:
                this.txfGenusID = ((System.Windows.Controls.TextBox)(target));
                return;

            case 3:
                this.cbxFamilyName = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 4:
                this.txfGenusName = ((System.Windows.Controls.TextBox)(target));
                return;

            case 5:
                this.btnSave = ((System.Windows.Controls.Button)(target));

            #line 36 "..\..\ctrlGenus.xaml"
                this.btnSave.Click += new System.Windows.RoutedEventHandler(this.btnSave_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.btnClear = ((System.Windows.Controls.Button)(target));

            #line 38 "..\..\ctrlGenus.xaml"
                this.btnClear.Click += new System.Windows.RoutedEventHandler(this.btnClear_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.sprAddGenus = ((System.Windows.Controls.Separator)(target));
                return;

            case 8:
                this.btnAddGenus = ((System.Windows.Controls.Button)(target));

            #line 54 "..\..\ctrlGenus.xaml"
                this.btnAddGenus.Click += new System.Windows.RoutedEventHandler(this.btnAddGenus_Click);

            #line default
            #line hidden
                return;

            case 9:
                this.dgrGenusTable = ((System.Windows.Controls.DataGrid)(target));
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 6
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.PanelBorder = ((System.Windows.Controls.Border)(target));
                return;

            case 2:
                this.Panel = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 3:
                this.Points = ((System.Windows.Controls.Label)(target));
                return;

            case 4:
                this.BoldSeparator = ((System.Windows.Controls.Separator)(target));
                return;

            case 5:
                this.WhosePoints = ((System.Windows.Controls.Label)(target));
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 7
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.label1 = ((System.Windows.Controls.Label)(target));
                return;

            case 2:
                this.label2 = ((System.Windows.Controls.Label)(target));
                return;

            case 3:
                this.separator1 = ((System.Windows.Controls.Separator)(target));
                return;

            case 4:
                this.separator2 = ((System.Windows.Controls.Separator)(target));
                return;

            case 5:
                this.CancelButton = ((System.Windows.Controls.Button)(target));

            #line 10 "..\..\..\..\..\..\Controls\Menu\NewGame\NewGameWindow.xaml"
                this.CancelButton.Click += new System.Windows.RoutedEventHandler(this.CancelButtonClick);

            #line default
            #line hidden
                return;

            case 6:
                this.FinishButton = ((System.Windows.Controls.Button)(target));
                return;

            case 7:
                this.NextButton = ((System.Windows.Controls.Button)(target));

            #line 12 "..\..\..\..\..\..\Controls\Menu\NewGame\NewGameWindow.xaml"
                this.NextButton.Click += new System.Windows.RoutedEventHandler(this.NextButtonClick);

            #line default
            #line hidden
                return;

            case 8:
                this.PreviewButton = ((System.Windows.Controls.Button)(target));

            #line 13 "..\..\..\..\..\..\Controls\Menu\NewGame\NewGameWindow.xaml"
                this.PreviewButton.Click += new System.Windows.RoutedEventHandler(this.PreviewButtonClick);

            #line default
            #line hidden
                return;

            case 9:
                this.Panel = ((System.Windows.Controls.ContentControl)(target));
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.stackPanel1 = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 2:
                this.rectangle1 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 3:
                this.dockPanel1 = ((System.Windows.Controls.DockPanel)(target));
                return;

            case 4:
                this.border1 = ((System.Windows.Controls.Border)(target));
                return;

            case 5:
                this.separator1 = ((System.Windows.Controls.Separator)(target));
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.pnlAddSpecie = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 2:
                this.sprAddSpecie = ((System.Windows.Controls.Separator)(target));
                return;

            case 3:
                this.btnAddSpecie = ((System.Windows.Controls.Button)(target));

            #line 58 "..\..\pageSpecies.xaml"
                this.btnAddSpecie.Click += new System.Windows.RoutedEventHandler(this.btnAddSpecie_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.dgrSpeciesTable = ((System.Windows.Controls.DataGrid)(target));
                return;
            }
            this._contentLoaded = true;
        }
                public OverallStatsPopUp(double width, double height, string content)
                        : base(width, height, content)
                {
                        _projectsNB = 0;
                        _projectsIPNB = 0;
                        _projectsDNB = 0;

                        _separator = new Separator();
                        _separator.Width = this.Width * 0.6;
                        _separator.Background = Palette2.GetColor(Palette2.THIN_GRAY);

                        SetUpProjectsPanel();
                        SetUpProjectsIPPanel();
                        SetUpDPanel();

                        SetUpPercentagePanel();
                        SetUpGraphPanel();

                        _container.Children.Add(_separator);
                        _container.Children.Add(_projectsPanel);
                        _container.Children.Add(_projectsIPPanel);
                        _container.Children.Add(_projectsDPanel);
                        _container.Children.Add(_percentagePanel);
                        _container.Children.Add(_graphPanel);


                }
Ejemplo n.º 11
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.transHistMainLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 2:
                this.mainMenu1Button = ((System.Windows.Controls.Button)(target));

            #line 21 "..\..\TransHistPage.xaml"
                this.mainMenu1Button.Click += new System.Windows.RoutedEventHandler(this.mainMenu1Button_Click);

            #line default
            #line hidden
                return;

            case 3:
                this.transHistSeparator = ((System.Windows.Controls.Separator)(target));
                return;

            case 4:
                this.sentRecListBox = ((System.Windows.Controls.ListBox)(target));
                return;

            case 5:
                this.buySoldListBox = ((System.Windows.Controls.ListBox)(target));
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 12
0
        public ICollection BuildItems(Codon codon, object owner)
        {
            int windowCount = WorkbenchSingleton.Workbench.WorkbenchWindowCollection.Count;

            if (windowCount == 0)
            {
                return(new object[] {});
            }
            var items = new object[windowCount + 1];

            items[0] = new System.Windows.Controls.Separator();
            for (int i = 0; i < windowCount; ++i)
            {
                IWorkbenchWindow window = WorkbenchSingleton.Workbench.WorkbenchWindowCollection[i];
                var item = new System.Windows.Controls.MenuItem()
                {
                    IsChecked   = WorkbenchSingleton.Workbench.ActiveWorkbenchWindow == window,
                    IsCheckable = true,
                    Header      = StringParser.Parse(window.Title).Replace("_", "__")
                };
                item.Click += delegate {
                    window.SelectWindow();
                };
                items[i + 1] = item;
            }
            return(items);
        }
Ejemplo n.º 13
0
        public KoncowyTest(List<string[]> slowa)
        {
            InitializeComponent();
            labels = new Label[15];
            textboxes = new TextBox[15];
            this.slowa = slowa;
            for (int i = 0; i < 15; i++)
            {
                labels[i] = new Label();
                textboxes[i] = new TextBox();
                labels[i].Content = slowa[i][0];
                labels[i].Margin = new Thickness(0,5,0,5);
                textboxes[i].Margin = new Thickness(0, 5, 0, 5);
                textboxes[i].MinWidth = 50;
                DockPanel dock = new DockPanel();
                dock.MinWidth = 200;
                var sep = new Separator();
                sep.MinWidth = 50;
                sep.Visibility = Visibility.Hidden;
                ;
                dock.Children.Add(labels[i]);
                dock.Children.Add(sep);
                dock.Children.Add(textboxes[i]);

                StackPanel.Children.Add(dock);
            }
        }
Ejemplo n.º 14
0
 public void AddSeparator(double width,ToolBar location)
 {
     Separator sp = new Separator();
     sp.Width = width;
     BrushConverter bc = new BrushConverter();
     sp.Background = (Brush)bc.ConvertFrom("Transparent");
     location.Items.Add(sp);
 }
Ejemplo n.º 15
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.ImportaFileWin = ((PPC.ImportaFileWindow)(target));

            #line 5 "..\..\..\ImportaFileWindow.xaml"
                this.ImportaFileWin.Closing += new System.ComponentModel.CancelEventHandler(this.ImportaFileWin_Closing);

            #line default
            #line hidden
                return;

            case 2:
                this.MainImportaLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 3:
                this.separator1 = ((System.Windows.Controls.Separator)(target));
                return;

            case 4:
                this.HelpImportaButton = ((System.Windows.Controls.Button)(target));

            #line 9 "..\..\..\ImportaFileWindow.xaml"
                this.HelpImportaButton.Click += new System.Windows.RoutedEventHandler(this.HelpImportaButton_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.ScegliFileButton = ((System.Windows.Controls.Button)(target));

            #line 10 "..\..\..\ImportaFileWindow.xaml"
                this.ScegliFileButton.Click += new System.Windows.RoutedEventHandler(this.ScegliFileButton_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.PathFileTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 7:
                this.CaricaFileButton = ((System.Windows.Controls.Button)(target));

            #line 12 "..\..\..\ImportaFileWindow.xaml"
                this.CaricaFileButton.Click += new System.Windows.RoutedEventHandler(this.CaricaFileButton_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 16
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.EsportaFileWin = ((PPC.EsportaFileWindow)(target));

            #line 4 "..\..\..\EsportaFileWindow.xaml"
                this.EsportaFileWin.Closing += new System.ComponentModel.CancelEventHandler(this.EsportaFileWin_Closing);

            #line default
            #line hidden
                return;

            case 2:
                this.MainEsportaLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 3:
                this.separator1 = ((System.Windows.Controls.Separator)(target));
                return;

            case 4:
                this.HelpEsportaButton = ((System.Windows.Controls.Button)(target));

            #line 8 "..\..\..\EsportaFileWindow.xaml"
                this.HelpEsportaButton.Click += new System.Windows.RoutedEventHandler(this.HelpEsportaButton_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.MenuComboBox = ((System.Windows.Controls.ComboBox)(target));

            #line 9 "..\..\..\EsportaFileWindow.xaml"
                this.MenuComboBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.MenuComboBox_SelectionChanged);

            #line default
            #line hidden
                return;

            case 6:
                this.SelezioneLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 7:
                this.EsportaButton = ((System.Windows.Controls.Button)(target));

            #line 11 "..\..\..\EsportaFileWindow.xaml"
                this.EsportaButton.Click += new System.Windows.RoutedEventHandler(this.EsportaButton_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 17
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.StartWindow = ((PPC.MainWindow)(target));
                return;

            case 2:
                this.label1 = ((System.Windows.Controls.Label)(target));
                return;

            case 3:
                this.label2 = ((System.Windows.Controls.Label)(target));
                return;

            case 4:
                this.label3 = ((System.Windows.Controls.Label)(target));
                return;

            case 5:
                this.textBox1 = ((System.Windows.Controls.TextBox)(target));
                return;

            case 6:
                this.textBox2 = ((System.Windows.Controls.TextBox)(target));
                return;

            case 7:
                this.separator1 = ((System.Windows.Controls.Separator)(target));
                return;

            case 8:
                this.ResetButton = ((System.Windows.Controls.Button)(target));

            #line 12 "..\..\..\MainWindow.xaml"
                this.ResetButton.Click += new System.Windows.RoutedEventHandler(this.button1_Click);

            #line default
            #line hidden
                return;

            case 9:
                this.ConnectButton = ((System.Windows.Controls.Button)(target));

            #line 13 "..\..\..\MainWindow.xaml"
                this.ConnectButton.Click += new System.Windows.RoutedEventHandler(this.ConnectButton_Click);

            #line default
            #line hidden
                return;

            case 10:
                this.HelpButton = ((System.Windows.Controls.Button)(target));
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 18
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.SettingsWindow = ((WeatherApplication.Settings)(target));

            #line 4 "..\..\..\Settings.xaml"
                this.SettingsWindow.Loaded += new System.Windows.RoutedEventHandler(this.SettingsWindow_Loaded);

            #line default
            #line hidden
                return;

            case 2:
                this.stackPanel1 = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 3:
                this.label1 = ((System.Windows.Controls.Label)(target));
                return;

            case 4:
                this.celciusRadioButton = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 5:
                this.fahrenheitRadioButton = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 6:
                this.separator1 = ((System.Windows.Controls.Separator)(target));
                return;

            case 7:
                this.label2 = ((System.Windows.Controls.Label)(target));
                return;

            case 8:
                this.postCode = ((System.Windows.Controls.TextBox)(target));
                return;

            case 9:
                this.separator2 = ((System.Windows.Controls.Separator)(target));
                return;

            case 10:
                this.updateSettingsButton = ((System.Windows.Controls.Button)(target));

            #line 18 "..\..\..\Settings.xaml"
                this.updateSettingsButton.Click += new System.Windows.RoutedEventHandler(this.updateSettingsButton_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 19
0
 public void AddSeparator()
 {
     Separator separator = new Separator();
     separator.Height = 9;
     childrenHeight += 9;
     separator.Margin = new Thickness(4, 0, 4, 0);
     separator.Background = new SolidColorBrush(Color.FromRgb(0, 0, 0));
     stackPanelStats.Children.Add(separator);
 }
Ejemplo n.º 20
0
		public MenuSeparator()
		{
			Header = new Separator
			{
				HorizontalAlignment = HorizontalAlignment.Stretch,
				Width = 150,
				IsEnabled = false
			};
		}
Ejemplo n.º 21
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
 {
     switch (connectionId)
     {
     case 1:
         this.SpriteControlsSeparator = ((System.Windows.Controls.Separator)(target));
         return;
     }
     this._contentLoaded = true;
 }
Ejemplo n.º 22
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.label1 = ((System.Windows.Controls.Label)(target));
                return;

            case 2:
                this.label2 = ((System.Windows.Controls.Label)(target));
                return;

            case 3:
                this.groupBox1 = ((System.Windows.Controls.GroupBox)(target));
                return;

            case 4:
                this.label3 = ((System.Windows.Controls.Label)(target));
                return;

            case 5:
                this.PathTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 6:
                this.BrowseButton = ((System.Windows.Controls.Button)(target));
                return;

            case 7:
                this.separator1 = ((System.Windows.Controls.Separator)(target));
                return;

            case 8:
                this.separator2 = ((System.Windows.Controls.Separator)(target));
                return;

            case 9:
                this.CancelButton = ((System.Windows.Controls.Button)(target));

            #line 17 "..\..\..\..\..\Controls\Menu\NewGame.xaml"
                this.CancelButton.Click += new System.Windows.RoutedEventHandler(this.CancelButton_Click);

            #line default
            #line hidden
                return;

            case 10:
                this.FinishButton = ((System.Windows.Controls.Button)(target));
                return;
            }
            this._contentLoaded = true;
        }
                public ProjectStatsPopUp(double width, double height, string content, string project)
                        : base(width, height, content)
                {
                        _separator = new Separator();
                        _separator.Width = this.Width * 0.6;
                        _separator.Background = Palette2.GetColor(Palette2.THIN_GRAY);


                        _brainstormingsPanel = new StatsPanel(new Selector(Constants.DatabaseValues.PROJECT_PATH).SelectBrainstormings(project).Count.ToString(), "  Brainstormings");

                        Ratio trainingsRatio = new StatsWarrior().GetTrainingsRatio(project);
                    
                        _trainingsPanel = new StatsPanel(
                                trainingsRatio.GetPercentage().ToString(),
                                " %  of trainings done (" + trainingsRatio.ToString() + ")");

                        _trainingsGraph = new GraphPanel(this.Width, trainingsRatio._done, trainingsRatio._todo);

                        Ratio assignmentsRatio = new StatsWarrior().GetAssignmentsRatio(project);

                        _assignmentsPanel = new StatsPanel(assignmentsRatio.GetPercentage().ToString("f0"),
                                " % of assignments done (" + assignmentsRatio.ToString() + ")");

                        _assignmentsGraph = new GraphPanel(this.Width, assignmentsRatio._done, assignmentsRatio._todo);

                        Ratio maintenanceRatio = new StatsWarrior().GetMaintenancesRatio(project);

                        _maintenacePanel = new StatsPanel(maintenanceRatio.GetPercentage().ToString("f0"),
                                                        " % of maintenance done (" + maintenanceRatio.ToString() + ")");

                        _maintenaceGraph = new GraphPanel(this.Width, maintenanceRatio._done, maintenanceRatio._todo);

                        Ratio projectRatio = new StatsWarrior().GetAdvancedTasksRatio(project);

                        _projectPanel = new StatsPanel(projectRatio.GetPercentage().ToString("f0"),
                                " % of " + project + " finished");

                        _projectGraph = new GraphPanel(this.Width, projectRatio._done, projectRatio._todo);

                        _container.Children.Add(_separator);
                        _container.Children.Add(_brainstormingsPanel);
                        _container.Children.Add(_trainingsPanel);
                        _container.Children.Add(_trainingsGraph);
                        _container.Children.Add(_assignmentsPanel);
                        _container.Children.Add(_assignmentsGraph);
                        _container.Children.Add(_maintenacePanel);
                        _container.Children.Add(_maintenaceGraph);
                        _container.Children.Add(_projectPanel);
                        _container.Children.Add(_projectGraph);

                }
Ejemplo n.º 24
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.grid1 = ((System.Windows.Controls.Grid)(target));
                return;

            case 2:
                this.l1 = ((System.Windows.Controls.Label)(target));
                return;

            case 3:
                this.l2 = ((System.Windows.Controls.Label)(target));
                return;

            case 4:
                this.WindTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 5:
                this.AngelTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 6:
                this.s1 = ((System.Windows.Controls.Separator)(target));
                return;

            case 7:
                this.SaveButton = ((System.Windows.Controls.Button)(target));

            #line 15 "..\..\..\Dialogs\WindWindow.xaml"
                this.SaveButton.Click += new System.Windows.RoutedEventHandler(this.SaveButton_Click);

            #line default
            #line hidden
                return;

            case 8:
                this.CancelButton = ((System.Windows.Controls.Button)(target));

            #line 16 "..\..\..\Dialogs\WindWindow.xaml"
                this.CancelButton.Click += new System.Windows.RoutedEventHandler(this.CancelButton_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 25
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.mainPanel = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 2:
                this.flowControls = ((ExperienceMainControls.MainControls)(target));
                return;

            case 3:
                this.xpControlsPanel = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 4:
                this.wpanel = ((System.Windows.Controls.WrapPanel)(target));
                return;

            case 5:
                this.groupBox1 = ((System.Windows.Controls.GroupBox)(target));
                return;

            case 6:
                this.protocolBodyPanel = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 7:
                this.panelProtocolTitle = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 8:
                this.labelProtocolLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 9:
                this.labelProtocolNumber = ((System.Windows.Controls.Label)(target));
                return;

            case 10:
                this.protocolSpecificSeparator = ((System.Windows.Controls.Separator)(target));
                return;

            case 11:
                this.protocolList = ((ExperienceMainControls.TreeViewControl)(target));
                return;
            }
            this._contentLoaded = true;
        }
                public OpenProjectPopUp(double width, double height, string content)
                        : base(width, height, content)
                {
                        this.Background = ThemeSelector.GetPopUpBackground();

                        _separator = new Separator();
                        _separator.Width = this.Width * 0.5;
                        _separator.Background = ThemeSelector.GetBackground();

                        _scroller = new ScrollViewer();
                        _scroller.Height = this.Height*0.6;


                        _projectsPanel = new StackPanel();
                        _projectsPanel.Orientation = Orientation.Vertical;
                        _projectsPanel.Margin = new System.Windows.Thickness(0, 30, 0, 0);

                        _projectItemList = new List<ProjectItem>();

                        List<string> projects = new ProjectMasterChief().GetProjects();

                        foreach (var item in projects)
                        {
                                ProjectItem proj = new ProjectItem(this.Height * 0.05, item, new StatsWarrior().GetAdvancedTasksRatio(item).ToString());
                                _projectItemList.Add(proj);
                                _projectsPanel.Children.Add(proj);
                                proj.MouseDown += proj_MouseDown;
                        }

                        _scroller.Content = _projectsPanel;



                        _openButton = new ValidateButton(ControlsValues.OPEN, this.Width * 0.5, this.Height * 0.07, new System.Windows.Thickness(0, 20, 0, 2), new System.Windows.Thickness(5, 5, 5, 5), System.Windows.HorizontalAlignment.Center);

                        _openButton.MouseDown += _openButton_MouseDown;
                        _openButton.IsEnabled = false;

                        _cancelButton = new CancelButton(ControlsValues.CLOSE, this.Width * 0.5, this.Height * 0.07, new System.Windows.Thickness(0, 5, 0, 30), new System.Windows.Thickness(5, 5, 5, 5), System.Windows.HorizontalAlignment.Center);

                        _cancelButton.MouseDown += _cancelButton_MouseDown;

                        _container.Children.Add(_separator);
                        _container.Children.Add(_scroller);

                        _container.Children.Add(_openButton);
                        _container.Children.Add(_cancelButton);

                }
Ejemplo n.º 27
0
Archivo: Tab.cs Proyecto: kjk/kjkpub
        public Tab()
        {
            title = new WrapPanel();
                titleText = new Label();
                titleText.Content = "New File";
                titleText.Width = 110;
                titleText.Height = 34;
                titleText.VerticalAlignment = VerticalAlignment.Top;
                titleText.VerticalContentAlignment = VerticalAlignment.Center;
                titleText.HorizontalContentAlignment = HorizontalAlignment.Center;
                titleText.FontFamily = Tab.fontFamilySegoeUI;
                titleText.IsTabStop = true;
                Microsoft.Windows.Shell.WindowChrome.SetIsHitTestVisibleInChrome(titleText, /*isHitTestable*/true);
                title.Children.Add(titleText);

                Separator seperator = new Separator();
                seperator.Width = 5;
                seperator.Visibility = Visibility.Hidden;
                title.Children.Add(seperator);

                closeButton = new Image();
                closeButton.Width = 8;
                closeButton.Height = 8;
                BitmapImage closeImage = new BitmapImage();
                closeImage.BeginInit();
                closeImage.UriSource = new Uri("pack://application:,,,/Bend;component/Images/Close-dot.png");
                closeImage.EndInit();
                closeButton.Source = closeImage;
                closeButton.Margin = new Thickness(0, 6, 0, 0);
                Microsoft.Windows.Shell.WindowChrome.SetIsHitTestVisibleInChrome(closeButton, /*isHitTestable*/true);
                title.Children.Add(closeButton);

                Microsoft.Windows.Shell.WindowChrome.SetIsHitTestVisibleInChrome(title, /*isHitTestable*/true);

                textEditor = new TextEditor();
                textEditor.HorizontalAlignment = HorizontalAlignment.Stretch;
                textEditor.Margin = new Thickness(0);
                textEditor.VerticalAlignment = VerticalAlignment.Stretch;
                textEditor.ShowLineNumbers = true;
                textEditor.FontFamily = Tab.fontFamilyConsolas;
                textEditor.FontSize = 14;
                textEditor.PreviewMouseWheel += Tab.EditorPreviewMouseWheel;
                textEditor.PreviewKeyDown += Tab.EditorPreviewKeyDown;

                this.fileChangedWatcher = null;
                this.lastFileChangeTime = 1;
                this.LoadOptions();
        }
Ejemplo n.º 28
0
        ///<summary>调整设置状态栏内容和分布</summary>
        internal static void adjust()
        {
            statusBar.Items.Clear();
            if (statusBar.ActualWidth == 0)
            {
                return;
            }
            if (infos.Count(p => p.isVisible && p.content != null) == 0)
            {
                return;
            }

            //加入状态栏
            var tmp = infos.Where(p => p.isVisible && p.content != null);

            System.Windows.Controls.Separator sep = new System.Windows.Controls.Separator();
            foreach (var item in tmp.OrderBy(p => p.order))
            {
                if (!item.Equals(tmp.First()))
                {
                    sep = new System.Windows.Controls.Separator();
                    statusBar.Items.Add(sep);
                }
                statusBar.Items.Add(item.statusbaritem);
            }
            int count = tmp.Count();

            //设置固定宽度项
            tmp = infos.Where(p => p.isVisible && p.width >= 1 && p.content != null);
            foreach (var item in tmp)
            {
                item.panel.Width = item.width;
            }
            //设置动态宽度项
            double dynlen = statusBar.ActualWidth - tmp.Sum(p => p.width) - (count - 1) * 20;//sep.ActualWidth;

            if (dynlen <= 0)
            {
                return;
            }
            double all = infos.Where(p => p.isVisible && p.width < 1 && p.content != null).Sum(p => p.width);

            tmp = infos.Where(p => p.isVisible && p.width < 1 && p.content != null);
            foreach (var item in tmp)
            {
                item.panel.Width = item.width / all * dynlen;
            }
        }
Ejemplo n.º 29
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 4 "..\..\..\MainWindow.xaml"
                ((Word_Processor__1._0_.MainWindow)(target)).KeyDown += new System.Windows.Input.KeyEventHandler(this.startWindow_KeyDown);

            #line default
            #line hidden
                return;

            case 2:
                this.title = ((System.Windows.Controls.Label)(target));
                return;

            case 3:
                this.subTitle = ((System.Windows.Controls.Label)(target));
                return;

            case 4:
                this.createButton = ((System.Windows.Controls.Button)(target));

            #line 14 "..\..\..\MainWindow.xaml"
                this.createButton.Click += new System.Windows.RoutedEventHandler(this.createButton_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.quitButton = ((System.Windows.Controls.Button)(target));

            #line 22 "..\..\..\MainWindow.xaml"
                this.quitButton.Click += new System.Windows.RoutedEventHandler(this.quitButton_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.separator1 = ((System.Windows.Controls.Separator)(target));
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 30
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.CustomerProfilePicture = ((System.Windows.Controls.Image)(target));
                return;

            case 2:
                this.CustomerName = ((System.Windows.Controls.Label)(target));
                return;

            case 3:
                this.label1 = ((System.Windows.Controls.Label)(target));
                return;

            case 4:
                this.label5 = ((System.Windows.Controls.Label)(target));
                return;

            case 5:
                this.label2 = ((System.Windows.Controls.Label)(target));
                return;

            case 6:
                this.CustomerPhone = ((System.Windows.Controls.Label)(target));
                return;

            case 7:
                this.CustomerAddress = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 8:
                this.CustomerEmail = ((System.Windows.Controls.Label)(target));
                return;

            case 9:
                this.separator2 = ((System.Windows.Controls.Separator)(target));
                return;

            case 10:
                this.Title = ((System.Windows.Controls.Label)(target));
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 31
0
        public DialogBackend()
        {
            cmd = new DelegatedCommand <WpfDialogButton> (OnButtonClicked);

            // Surprisingly, the ItemsControls are focusable by default; disable that to fix tab navigation
            this.leftButtonContainer.Focusable  = false;
            this.rightButtonContainer.Focusable = false;

            this.leftButtonContainer.ItemsPanel           = leftPanelTemplate;
            this.leftButtonContainer.ItemTemplateSelector = new DialogButtonTemplateSelector(ButtonStyle, cmd);
            this.leftButtonContainer.ItemsSource          = this.leftButtons;
            this.leftButtonContainer.HorizontalAlignment  = HorizontalAlignment.Left;

            this.rightButtonContainer.ItemsPanel           = rightPanelTemplate;
            this.rightButtonContainer.ItemTemplateSelector = new DialogButtonTemplateSelector(ButtonStyle, cmd);
            this.rightButtonContainer.ItemsSource          = this.rightButtons;
            this.rightButtonContainer.HorizontalAlignment  = HorizontalAlignment.Right;

            this.rootPanel.RowDefinitions.Add(new RowDefinition {
                Height = new GridLength(0, GridUnitType.Auto)
            });
            separator            = new SWC.Separator();
            separator.Visibility = Visibility.Collapsed;
            Grid.SetRow(separator, 2);
            this.rootPanel.Children.Add(separator);

            this.rootPanel.RowDefinitions.Add(new RowDefinition {
                Height = new GridLength(0, GridUnitType.Auto)
            });

            this.buttonContainer.ColumnDefinitions.Add(new ColumnDefinition {
                Width = GridLength.Auto
            });
            this.buttonContainer.ColumnDefinitions.Add(new ColumnDefinition());
            this.buttonContainer.ColumnDefinitions.Add(new ColumnDefinition {
                Width = GridLength.Auto
            });
            Grid.SetColumn(this.leftButtonContainer, 0);
            Grid.SetColumn(this.rightButtonContainer, 2);
            this.buttonContainer.Children.Add(this.leftButtonContainer);
            this.buttonContainer.Children.Add(this.rightButtonContainer);

            Grid.SetRow(buttonContainer, 3);
            this.rootPanel.Children.Add(buttonContainer);
            buttonContainer.Visibility = Visibility.Collapsed;
        }
Ejemplo n.º 32
0
        public DialogBackend()
        {
            cmd = new DelegatedCommand<DialogButton> (OnButtonClicked);

            this.buttonContainer.ItemsPanel = PanelTemplate;
            this.buttonContainer.ItemTemplateSelector =  new DialogButtonTemplateSelector (ButtonStyle, cmd);
            this.buttonContainer.ItemsSource = this.buttons;
            this.buttonContainer.HorizontalAlignment = HorizontalAlignment.Right;

            this.rootPanel.RowDefinitions.Add (new RowDefinition { Height = new GridLength (0, GridUnitType.Auto) });
            separator = new SWC.Separator ();
            Grid.SetRow (separator, 2);
            this.rootPanel.Children.Add (separator);

            this.rootPanel.RowDefinitions.Add (new RowDefinition { Height = new GridLength (0, GridUnitType.Auto) });
            Grid.SetRow (this.buttonContainer, 3);
            this.rootPanel.Children.Add (this.buttonContainer);
        }
Ejemplo n.º 33
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.txbInstruction = ((System.Windows.Controls.Label)(target));
     return;
     case 2:
     this.lblMILastName = ((System.Windows.Controls.Label)(target));
     return;
     case 3:
     this.lblMIEmail = ((System.Windows.Controls.Label)(target));
     return;
     case 4:
     this.lblMIPhone = ((System.Windows.Controls.Label)(target));
     return;
     case 5:
     this.txtMILastName = ((System.Windows.Controls.TextBox)(target));
     return;
     case 6:
     this.txtMIEmail = ((System.Windows.Controls.TextBox)(target));
     return;
     case 7:
     this.txtMIPhone = ((System.Windows.Controls.TextBox)(target));
     return;
     case 8:
     this.linMI = ((System.Windows.Controls.Separator)(target));
     return;
     case 9:
     this.btnSearchMI = ((System.Windows.Controls.Button)(target));
     return;
     case 10:
     this.btnClearMI = ((System.Windows.Controls.Button)(target));
     return;
     case 11:
     this.labMemberInformation = ((System.Windows.Controls.Label)(target));
     return;
     case 12:
     this.txtResultMI = ((System.Windows.Controls.TextBox)(target));
     return;
     }
     this._contentLoaded = true;
 }
Ejemplo n.º 34
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.label11 = ((System.Windows.Controls.Label)(target));
                return;

            case 2:
                this.label12 = ((System.Windows.Controls.Label)(target));
                return;

            case 3:
                this.CurrentCharge = ((System.Windows.Controls.Label)(target));
                return;

            case 4:
                this.LastCharged = ((System.Windows.Controls.Label)(target));
                return;

            case 5:
                this.separator3 = ((System.Windows.Controls.Separator)(target));
                return;

            case 6:
                this.label17 = ((System.Windows.Controls.Label)(target));
                return;

            case 7:
                this.label8 = ((System.Windows.Controls.Label)(target));
                return;

            case 8:
                this.AccountBalance = ((System.Windows.Controls.Label)(target));
                return;

            case 9:
                this.BatteryAnimation = ((ClientApp.Controls.BatteryRecharging)(target));
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 35
0
        public DialogBackend()
        {
            cmd = new DelegatedCommand <DialogButton> (OnButtonClicked);

            this.buttonContainer.ItemsPanel           = PanelTemplate;
            this.buttonContainer.ItemTemplateSelector = new DialogButtonTemplateSelector(ButtonStyle, cmd);
            this.buttonContainer.ItemsSource          = this.buttons;
            this.buttonContainer.HorizontalAlignment  = HorizontalAlignment.Right;

            this.rootPanel.RowDefinitions.Add(new RowDefinition {
                Height = new GridLength(0, GridUnitType.Auto)
            });
            separator = new SWC.Separator();
            Grid.SetRow(separator, 2);
            this.rootPanel.Children.Add(separator);

            this.rootPanel.RowDefinitions.Add(new RowDefinition {
                Height = new GridLength(0, GridUnitType.Auto)
            });
            Grid.SetRow(this.buttonContainer, 3);
            this.rootPanel.Children.Add(this.buttonContainer);
        }
Ejemplo n.º 36
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.GoogleMap = ((System.Windows.Controls.WebBrowser)(target));
                return;

            case 2:
                this.CustomerLocation = ((System.Windows.Controls.Label)(target));
                return;

            case 3:
                this.separator3 = ((System.Windows.Controls.Separator)(target));
                return;

            case 4:
                this.StationList = ((ClientApp.Controls.ImageListBox)(target));
                return;
            }
            this._contentLoaded = true;
        }
 private object processMenuElement(XElement theElement, string theDefault, MenuItemClick delg)
 {
     if (theElement.Name == Common.MenuItem)
     {
         MenuItem theItem = new MenuItem();
         theItem.Header = theElement.GetAttribute("text");
         string action = theElement.GetAttribute(Common.MenuAction);
         theItem.Tag = action;
         if (action == theDefault)
         {
             theItem.FontWeight = FontWeights.Bold;
         }
         theItem.Click += new RoutedEventHandler(delg);
         /*
         theElement.GetAttribute("clientAction")
         if (Common.boolValue(theElement.GetAttribute("checked")))
             theItem.Checked = true;
         if (theItem.Action == theDefault)
             theItem.DefaultItem = true;
         */
         return theItem;
     }
     else if (theElement.Name == Common.ProcessSeparator)
     {
         Separator s = new Separator();
         return s;
     }
     else//sub menu
     {
         MenuItem theItem = new MenuItem();
         theItem.Header = theElement.Attribute("name").Value;
         foreach(XElement child in theElement.DescendantNodes() )
         {
             theItem.Items.Add(processMenuElement((XElement)child, theDefault, delg));
         }
         return theItem;
     }
 }
Ejemplo n.º 38
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.label4 = ((System.Windows.Controls.Label)(target));
                return;

            case 2:
                this.label6 = ((System.Windows.Controls.Label)(target));
                return;

            case 3:
                this.label7 = ((System.Windows.Controls.Label)(target));
                return;

            case 4:
                this.CarPlate = ((System.Windows.Controls.Label)(target));
                return;

            case 5:
                this.CarModel = ((System.Windows.Controls.Label)(target));
                return;

            case 6:
                this.separator1 = ((System.Windows.Controls.Separator)(target));
                return;

            case 7:
                this.CarMake = ((System.Windows.Controls.Label)(target));
                return;

            case 8:
                this.label3 = ((System.Windows.Controls.Label)(target));
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 39
0
        //public HumanMacroData(Word.Range text, List<String> results)
        public HumanMacroData(Word.Range toShorten, int job, Separator separator, double reward, int redundancy, string title, string subtitle, string instructions, ReturnType type, TestOrReal test)
            : base(toShorten, job)
        {
            this.text = toShorten;
            this.separator = separator;
            //this.results = results;
            //patches = new List<HumanMacroPatch>();

            this.reward = reward;
            this.redundancy = redundancy;
            this.title = title;
            this.subtitle = subtitle;
            this.instructions = instructions;
            this.type = type;
            this.numberReturned = 0;
            this.test = test;

            //stages[HITData.ResultType.Macro] = new StageData(HITData.ResultType.Macro);
            macroStageData = new StageData(HITData.ResultType.Macro, job);
            stages.Add(macroStageData);
            //stages[HITData.ResultType.Macro] = new HumanMacroStage(HITData.ResultType.Macro, redundancy);

            results = new List<string>();
        }
Ejemplo n.º 40
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.pnlAddLocality = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 2:
                this.sprAddLocality = ((System.Windows.Controls.Separator)(target));
                return;

            case 3:
                this.btnAddLocality = ((System.Windows.Controls.Button)(target));

            #line 65 "..\..\pageLocality.xaml"
                this.btnAddLocality.Click += new System.Windows.RoutedEventHandler(this.btnAddLocality_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 41
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 4 "..\..\..\..\page\OpenCarInfo.xaml"
                ((WpfApplication2.OpenCarInfo)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);

            #line default
            #line hidden

            #line 4 "..\..\..\..\page\OpenCarInfo.xaml"
                ((WpfApplication2.OpenCarInfo)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.Window_Closing);

            #line default
            #line hidden
                return;

            case 2:
                this.groupBox1 = ((System.Windows.Controls.GroupBox)(target));
                return;

            case 3:
                this.label1 = ((System.Windows.Controls.Label)(target));
                return;

            case 4:
                this.label2 = ((System.Windows.Controls.Label)(target));
                return;

            case 5:
                this.label3 = ((System.Windows.Controls.Label)(target));
                return;

            case 6:
                this.label4 = ((System.Windows.Controls.Label)(target));
                return;

            case 7:
                this.label6 = ((System.Windows.Controls.Label)(target));
                return;

            case 8:
                this.label7 = ((System.Windows.Controls.Label)(target));
                return;

            case 9:
                this.textBox1 = ((System.Windows.Controls.TextBox)(target));
                return;

            case 10:
                this.textBox2 = ((System.Windows.Controls.TextBox)(target));
                return;

            case 11:
                this.textBox3 = ((System.Windows.Controls.TextBox)(target));
                return;

            case 12:
                this.textBox4 = ((System.Windows.Controls.TextBox)(target));
                return;

            case 13:
                this.textBox5 = ((System.Windows.Controls.TextBox)(target));
                return;

            case 14:
                this.textBox6 = ((System.Windows.Controls.TextBox)(target));
                return;

            case 15:
                this.textBox7 = ((System.Windows.Controls.TextBox)(target));
                return;

            case 16:
                this.label5 = ((System.Windows.Controls.Label)(target));
                return;

            case 17:
                this.CatchRecord = ((System.Windows.Controls.Button)(target));

            #line 53 "..\..\..\..\page\OpenCarInfo.xaml"
                this.CatchRecord.Click += new System.Windows.RoutedEventHandler(this.CatchRecord_Click);

            #line default
            #line hidden
                return;

            case 18:
                this.groupBox2 = ((System.Windows.Controls.GroupBox)(target));
                return;

            case 19:
                this.RBR22 = ((System.Windows.Controls.RadioButton)(target));

            #line 57 "..\..\..\..\page\OpenCarInfo.xaml"
                this.RBR22.Checked += new System.Windows.RoutedEventHandler(this.RBR22_Checked);

            #line default
            #line hidden
                return;

            case 20:
                this.RBR134a = ((System.Windows.Controls.RadioButton)(target));

            #line 58 "..\..\..\..\page\OpenCarInfo.xaml"
                this.RBR134a.Checked += new System.Windows.RoutedEventHandler(this.RBR134a_Checked);

            #line default
            #line hidden
                return;

            case 21:
                this.label9 = ((System.Windows.Controls.Label)(target));
                return;

            case 22:
                this.separator1 = ((System.Windows.Controls.Separator)(target));
                return;

            case 23:
                this.separator2 = ((System.Windows.Controls.Separator)(target));
                return;

            case 24:
                this.separator4 = ((System.Windows.Controls.Separator)(target));
                return;

            case 25:
                this.separator3 = ((System.Windows.Controls.Separator)(target));
                return;

            case 26:
                this.groupBox3 = ((System.Windows.Controls.GroupBox)(target));
                return;

            case 27:
                this.RB24V = ((System.Windows.Controls.RadioButton)(target));

            #line 68 "..\..\..\..\page\OpenCarInfo.xaml"
                this.RB24V.Checked += new System.Windows.RoutedEventHandler(this.RB24V_Checked);

            #line default
            #line hidden
                return;

            case 28:
                this.RB12V = ((System.Windows.Controls.RadioButton)(target));

            #line 69 "..\..\..\..\page\OpenCarInfo.xaml"
                this.RB12V.Checked += new System.Windows.RoutedEventHandler(this.RB12V_Checked);

            #line default
            #line hidden
                return;

            case 29:
                this.label10 = ((System.Windows.Controls.Label)(target));
                return;

            case 30:
                this.textBlock1 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 31:
                this.textBlock2 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 32:
                this.textBlock3 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 33:
                this.textBlock4 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 34:
                this.btConfirm = ((System.Windows.Controls.Button)(target));

            #line 79 "..\..\..\..\page\OpenCarInfo.xaml"
                this.btConfirm.Click += new System.Windows.RoutedEventHandler(this.btConfirm_Click);

            #line default
            #line hidden
                return;

            case 35:
                this.btReturn = ((System.Windows.Controls.Button)(target));

            #line 80 "..\..\..\..\page\OpenCarInfo.xaml"
                this.btReturn.Click += new System.Windows.RoutedEventHandler(this.btReturn_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 42
0
        //'update view tab after changing view settings
        void ExplorerBrowserControl_ViewEnumerationComplete(object sender, EventArgs e)
        {

            //timerv.Interval = new TimeSpan(0, 0, 7);
            //timerv.IsEnabled = true;
            //timerv.Tick += new EventHandler(timerv_Tick);

            searchcicles++;
            //BeforeSearcCicles = searchcicles;
            Dispatcher.BeginInvoke(DispatcherPriority.Normal, (ThreadStart)(() =>
                                {
                                    IsCalledFromViewEnum = true;
                                    zoomSlider.Value = Explorer.ContentOptions.ThumbnailSize;
                                    IsCalledFromViewEnum = false;
                                    IShellView isv = Explorer.GetShellView();

                                    Collumns[] AllAvailColls =
                                        Explorer.AvailableColumns(isv, true);
                                    btnMoreColls.Items.Clear();

                                    for (int j = 1; j < 10; j++)
                                    {
                                        try
                                        {
                                            MenuItem mic = new MenuItem();
                                            mic.Header = AllAvailColls[j].Name;
                                            mic.Tag = AllAvailColls[j].pkey;
                                            mic.Click += new RoutedEventHandler(mic_Click);
                                            mic.Focusable = false;
                                            mic.IsCheckable = true;
                                            foreach (Collumns col in Explorer.AvailableVisibleColumns)
                                            {
                                                if (col.Name == AllAvailColls[j].Name)
                                                {
                                                    mic.IsChecked = true;
                                                }
                                            }
                                            btnMoreColls.Items.Add(mic);
                                        }
                                        catch (Exception)
                                        {

                                        }


                                    }

                                    int ItemsCount = Explorer.GetItemsCount();


                                    if (ItemsCount == 0)
                                    {
                                        sbiItemsCount.Visibility = System.Windows.Visibility.Collapsed;
                                    }
                                    else
                                    {
                                        sbiItemsCount.Visibility = System.Windows.Visibility.Visible;
                                    }
                                    if (ItemsCount == 1)
                                    {
                                        sbiItemsCount.Content = "1 item";
                                    }
                                    else
                                    {
                                        sbiItemsCount.Content = ItemsCount.ToString() + " items";
                                    }


                                    Separator sep = new Separator();
                                    btnMoreColls.Items.Add(sep);
                                    MenuItem micm = new MenuItem();
                                    micm.Header = "More Columns";
                                    micm.Focusable = false;
                                    micm.Tag = AllAvailColls;
                                    micm.Click += new RoutedEventHandler(micm_Click);
                                    btnMoreColls.Items.Add(micm);

                                    btnSort.Items.Clear();
                                    btnGroup.Items.Clear();

                                    ExplorerBrowser.SORTCOLUMN sc;
                                    Explorer.GetSortColInfo(out sc);
                                    ExplorerBrowser.PROPERTYKEY pkg;
                                    bool GroupDir;
                                    Explorer.GetGroupColInfo(out pkg, out GroupDir);

                                    try
                                    {
                                        foreach (Collumns item in Explorer.AvailableVisibleColumns)
                                        {

                                            if (item != null)
                                            {
                                                MenuItem mi = new MenuItem();
                                                mi.Header = item.Name;
                                                mi.Tag = item;
                                                mi.GroupName = "GR2";
                                                mi.Focusable = false;
                                                mi.IsCheckable = true;
                                                if ((item.pkey.fmtid == sc.propkey.fmtid) && (item.pkey.pid == sc.propkey.pid))
                                                {
                                                    mi.IsChecked = true;
                                                }
                                                else
                                                {
                                                    mi.IsChecked = false;
                                                }
                                                mi.Click += new RoutedEventHandler(mi_Click);
                                                btnSort.Items.Add(mi);

                                                MenuItem mig = new MenuItem();
                                                mig.Header = item.Name;
                                                mig.Tag = item;
                                                mig.GroupName = "GR3";
                                                mig.Focusable = false;
                                                mig.IsCheckable = true;
                                                if ((item.pkey.fmtid == pkg.fmtid) && (item.pkey.pid == pkg.pid))
                                                {
                                                    mig.IsChecked = true;
                                                }
                                                else
                                                {
                                                    mig.IsChecked = false;
                                                }
                                                mig.Click += new RoutedEventHandler(mig_Click);
                                                btnGroup.Items.Add(mig);
                                            }
                                        }
                                    }
                                    catch (Exception ex)
                                    {
                                        MessageBox.Show("BetterExplorer had an issue loading the visible columns for the current view. You might not be able to sort or group items.", ex.ToString(), MessageBoxButton.OK, MessageBoxImage.Error); 
                                    }
                                    Separator sp = new Separator();
                                    sp.Focusable = false;
                                    btnSort.Items.Add(sp);
                                    misa = new MenuItem();
                                    misa.Click += new RoutedEventHandler(misa_Click);
                                    misa.Focusable = false;
                                    misa.Header = "Ascending";
                                    misa.IsCheckable = true;


                                    misa.GroupName = "GR1";

                                    misd = new MenuItem();
                                    misd.Header = "Descending";
                                    misd.IsCheckable = true;
                                    misd.Click += new RoutedEventHandler(misd_Click);
                                    misd.Focusable = false;
                                    misd.GroupName = "GR1";
                                    if (sc.direction == Microsoft.WindowsAPICodePack.Controls.WindowsForms.ExplorerBrowser.SORT.ASCENDING)
                                    {
                                        misa.IsChecked = true;
                                    }
                                    else
                                    {
                                        misd.IsChecked = true;
                                    }
                                    btnSort.Items.Add(misa);
                                    btnSort.Items.Add(misd);
                                    misng = new MenuItem();
                                    misng.Header = "(none)";
                                    misng.Focusable = false;
                                    misng.GroupName = "GR4";
                                    misng.Click += new RoutedEventHandler(misng_Click);
                                    btnGroup.Items.Add(misng);
                                    Separator spg = new Separator();
                                    btnGroup.Items.Add(spg);
                                    misag = new MenuItem();
                                    misag.Focusable = false;
                                    misag.Header = "Ascending";
                                    misag.IsCheckable = true;


                                    misag.GroupName = "GR4";

                                    misdg = new MenuItem();
                                    misdg.Focusable = false;
                                    misdg.Header = "Descending";
                                    misdg.IsCheckable = true;
                                    misdg.GroupName = "GR4";
                                    if (GroupDir)
                                    {
                                        misag.IsChecked = true;
                                    }
                                    else
                                    {
                                        misdg.IsChecked = true;
                                    }

                                    btnGroup.Items.Add(misag);
                                    btnGroup.Items.Add(misdg);

                                    int i = Explorer.ContentOptions.ThumbnailSize;
                                    if (Explorer.ContentOptions.ThumbnailSize == 256)
                                    {
                                        inRibbonGallery1.SelectedIndex = 0;

                                    }
                                    if (Explorer.ContentOptions.ThumbnailSize == 96)
                                    {
                                        inRibbonGallery1.SelectedIndex = 1;

                                    }
                                    if (Explorer.ContentOptions.ThumbnailSize == 64)
                                    {
                                        inRibbonGallery1.SelectedIndex = 2;

                                    }
                                    if (Explorer.ContentOptions.ThumbnailSize == 48 & Explorer.ContentOptions.ViewMode == ExplorerBrowserViewMode.Icon)
                                    {
                                        inRibbonGallery1.SelectedIndex = 3;
                                        btnSbIcons.IsChecked = true;
                                    }
                                    else
                                    {
                                        btnSbIcons.IsChecked = false;
                                    }
                                    if (Explorer.ContentOptions.ViewMode == ExplorerBrowserViewMode.List)
                                    {
                                        inRibbonGallery1.SelectedIndex = 4;
                                    }
                                    if (Explorer.ContentOptions.ViewMode == ExplorerBrowserViewMode.Details)
                                    {
                                        inRibbonGallery1.SelectedIndex = 5;
                                        btnSbDetails.IsChecked = true;
                                    }
                                    else
                                    {
                                        btnSbDetails.IsChecked = false;
                                    }
                                    if (Explorer.ContentOptions.ViewMode == ExplorerBrowserViewMode.Tile)
                                    {
                                        inRibbonGallery1.SelectedIndex = 6;
                                        btnSbTiles.IsChecked = true;
                                    }
                                    else
                                    {
                                        btnSbTiles.IsChecked = false;
                                    }
                                    if (Explorer.ContentOptions.ViewMode == ExplorerBrowserViewMode.Content)
                                    {
                                        inRibbonGallery1.SelectedIndex = 7;
                                    }
                                }
            ));
            Explorer.ExplorerSetFocus();
            GC.WaitForFullGCComplete();
            GC.Collect();
        }
        private void AddListViewItems()
        {
            listViewSecretBases.Items.Clear();
            if (IsGBAGame) {
                if (GBAGameSave.SecretBaseLocation != 0)
                    AddListViewItem(new PlayerSecretBase(gameSave));
                else
                    AddListViewItem(null);

                Separator separator = new Separator();
                separator.Height = 7;
                separator.BorderBrush = new SolidColorBrush(Color.FromRgb(0, 0, 0));
                listViewSecretBases.Items.Add(separator);

                foreach (SharedSecretBase secretBase in (gameSave as GBAGameSave).SecretBaseManager.SharedSecretBases) {
                    AddListViewItem(secretBase);
                }
            }
            else {
                foreach (SharedSecretBase secretBase in PokeManager.SecretBases) {
                    AddListViewItem(secretBase);
                }
            }
        }
Ejemplo n.º 44
0
        /// <summary>
        /// Layout logic for the given layout definition
        /// </summary>
        /// <param name="layoutDefinition">Current layout definition</param>
        /// <param name="availableSize">Available or final size</param>
        /// <param name="measure">Pass true if measure required; pass false if arrange required</param>
        /// <param name="addchildren">Determines whether we have to add children to the logical and visual tree</param>
        /// <returns>Final size</returns>
        Size CustomLayout(RibbonToolBarLayoutDefinition layoutDefinition, Size availableSize, bool measure, bool addchildren)
        {
            bool arrange = !measure;
            double availableHeight = double.IsPositiveInfinity(availableSize.Height) ? 0 : availableSize.Height;

            // Clear separator cahce
            if (addchildren)
                this.separatorCache.Clear();

            // Get the first control and measure, its height accepts as row height
            double rowHeight = this.GetRowHeight(layoutDefinition);
            

            // Calculate whitespace
            int rowCountInColumn = Math.Min(layoutDefinition.RowCount, layoutDefinition.Rows.Count);
            double whitespace = (availableHeight - ((double)rowCountInColumn * rowHeight)) / (double)(rowCountInColumn + 1);

            double y = 0;
            double x = 0;
            double currentRowBegin = 0;
            double currentMaxX = 0;
            double maxy = 0;
            for(int rowIndex = 0; rowIndex < layoutDefinition.Rows.Count; rowIndex++)
            {
                RibbonToolBarRow row = layoutDefinition.Rows[rowIndex];

                x = currentRowBegin;

                if (rowIndex % rowCountInColumn == 0)
                {
                    // Reset vars at new column
                    x = currentRowBegin = currentMaxX;
                    y = 0;

                    if (rowIndex != 0)
                    {
                        #region Add separator

                        Separator separator = null;
                        if (!this.separatorCache.TryGetValue(rowIndex, out separator))
                        {
                            separator = new Separator();
                            separator.Style = this.SeparatorStyle;
                            this.separatorCache.Add(rowIndex, separator);
                        }
                        if (measure)
                        {
                            separator.Height = availableHeight - separator.Margin.Bottom - separator.Margin.Top;
                            separator.Measure(availableSize);
                        }
                        if (arrange) separator.Arrange(new Rect(x, y,
                                separator.DesiredSize.Width,
                                separator.DesiredSize.Height));
                        x += separator.DesiredSize.Width;

                        if (addchildren)
                        {
                            // Add control in the children
                            this.AddVisualChild(separator);
                            this.AddLogicalChild(separator);
                            this.actualChildren.Add(separator);
                        }

                        #endregion
                    }
                }
                y += whitespace;
                

                // Measure & arrange new row
                for(int i = 0; i < row.Children.Count; i++)
                {
                    if (row.Children[i] is RibbonToolBarControlDefinition)
                    {
                        // Control Definition Case
                        RibbonToolBarControlDefinition controlDefinition =
                            (RibbonToolBarControlDefinition) row.Children[i];
                        FrameworkElement control = this.GetControl(controlDefinition);
                        if (control == null) continue;

                        if (addchildren)
                        {
                            // Add control in the children
                            this.AddVisualChild(control);
                            this.AddLogicalChild(control);
                            this.actualChildren.Add(control);
                        }

                        if (measure)
                        {
                            // Apply Control Definition Properties
                            RibbonProperties.SetSize(control, RibbonProperties.GetSize(controlDefinition));
                            control.Width = controlDefinition.Width;
                            control.Measure(availableSize);
                        }
                        if (arrange)
                        {
                            control.Arrange(new Rect(x, y, 
                                control.DesiredSize.Width, 
                                control.DesiredSize.Height));
                        }

                        x += control.DesiredSize.Width;
                    }
                    if (row.Children[i] is RibbonToolBarControlGroupDefinition)
                    {
                        // Control Definition Case
                        RibbonToolBarControlGroupDefinition controlGroupDefinition =
                            (RibbonToolBarControlGroupDefinition)row.Children[i];

                        RibbonToolBarControlGroup control = this.GetControlGroup(controlGroupDefinition);
                        
                        if (addchildren)
                        {
                            // Add control in the children
                            this.AddVisualChild(control);
                            this.AddLogicalChild(control);
                            this.actualChildren.Add(control);
                        }

                        if (measure)
                        {
                            // Apply Control Definition Properties
                            control.IsFirstInRow = (i == 0);
                            control.IsLastInRow = (i == row.Children.Count - 1);
                            control.Measure(availableSize);
                        }
                        if (arrange)
                        {
                            control.Arrange(new Rect(x, y,
                                control.DesiredSize.Width,
                                control.DesiredSize.Height));
                        }

                        x += control.DesiredSize.Width;
                    }
                }

                y += rowHeight;
                if (currentMaxX < x) currentMaxX = x;
                if (maxy < y) maxy = y;
            }

            return new Size(currentMaxX, maxy + whitespace);
        }
Ejemplo n.º 45
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.VooDooMainWindow = ((VooDoo.MainWindow)(target));

            #line 5 "..\..\..\MainWindow.xaml"
                this.VooDooMainWindow.SizeChanged += new System.Windows.SizeChangedEventHandler(this.VooDooMainWindow_SizeChanged);

            #line default
            #line hidden
                return;

            case 2:
                this.Canvas = ((System.Windows.Controls.Canvas)(target));

            #line 24 "..\..\..\MainWindow.xaml"
                this.Canvas.PreviewMouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Canvas_PreviewMouseLeftButtonDown);

            #line default
            #line hidden

            #line 24 "..\..\..\MainWindow.xaml"
                this.Canvas.PreviewMouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.Canvas_PreviewMouseLeftButtonUp);

            #line default
            #line hidden

            #line 24 "..\..\..\MainWindow.xaml"
                this.Canvas.PreviewMouseMove += new System.Windows.Input.MouseEventHandler(this.Canvas_PreviewMouseMove);

            #line default
            #line hidden
                return;

            case 3:
                this.menu1 = ((System.Windows.Controls.Menu)(target));
                return;

            case 4:
                this.separator1 = ((System.Windows.Controls.Separator)(target));
                return;

            case 5:
                this.comboBox1 = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 6:
                this.label1 = ((System.Windows.Controls.Label)(target));
                return;

            case 7:
                this.NewTaskTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 8:
                this.taskListGrid = ((System.Windows.Controls.DataGrid)(target));

            #line 60 "..\..\..\MainWindow.xaml"
                this.taskListGrid.BeginningEdit += new System.EventHandler <System.Windows.Controls.DataGridBeginningEditEventArgs>(this.taskListGrid_BeginningEdit);

            #line default
            #line hidden

            #line 60 "..\..\..\MainWindow.xaml"
                this.taskListGrid.CellEditEnding += new System.EventHandler <System.Windows.Controls.DataGridCellEditEndingEventArgs>(this.taskListGrid_CellEditEnding);

            #line default
            #line hidden
                return;

            case 9:
                this.lblNumTasks = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 10:
                this.lblDateTime = ((System.Windows.Controls.TextBlock)(target));
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 46
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.label11 = ((System.Windows.Controls.Label)(target));
     return;
     case 2:
     this.label12 = ((System.Windows.Controls.Label)(target));
     return;
     case 3:
     this.CurrentCharge = ((System.Windows.Controls.Label)(target));
     return;
     case 4:
     this.LastCharged = ((System.Windows.Controls.Label)(target));
     return;
     case 5:
     this.separator3 = ((System.Windows.Controls.Separator)(target));
     return;
     case 6:
     this.label17 = ((System.Windows.Controls.Label)(target));
     return;
     case 7:
     this.label8 = ((System.Windows.Controls.Label)(target));
     return;
     case 8:
     this.AccountBalance = ((System.Windows.Controls.Label)(target));
     return;
     case 9:
     this.BatteryAnimation = ((ClientApp.Controls.BatteryRecharging)(target));
     return;
     }
     this._contentLoaded = true;
 }
Ejemplo n.º 47
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.rootGrid = ((System.Windows.Controls.Grid)(target));
     return;
     case 2:
     this.lbTitle = ((System.Windows.Controls.Label)(target));
     return;
     case 3:
     this.groupBox1 = ((System.Windows.Controls.GroupBox)(target));
     return;
     case 4:
     this.label2 = ((System.Windows.Controls.Label)(target));
     return;
     case 5:
     this.datePicker1 = ((System.Windows.Controls.DatePicker)(target));
     return;
     case 6:
     this.label3 = ((System.Windows.Controls.Label)(target));
     return;
     case 7:
     this.datePicker2 = ((System.Windows.Controls.DatePicker)(target));
     return;
     case 8:
     this.label4 = ((System.Windows.Controls.Label)(target));
     return;
     case 9:
     this.comboBox1 = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 10:
     this.label5 = ((System.Windows.Controls.Label)(target));
     return;
     case 11:
     this.comboBox2 = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 12:
     this.button1 = ((System.Windows.Controls.Button)(target));
     
     #line 53 "..\..\..\..\..\View\Reports\HedgeGroupPNL.xaml"
     this.button1.Click += new System.Windows.RoutedEventHandler(this.Query);
     
     #line default
     #line hidden
     return;
     case 13:
     this.separator1 = ((System.Windows.Controls.Separator)(target));
     return;
     case 14:
     this.pagingControl1 = ((Utility.Controls.PagingControl)(target));
     return;
     case 15:
     this.dataGrid1 = ((System.Windows.Controls.DataGrid)(target));
     
     #line 58 "..\..\..\..\..\View\Reports\HedgeGroupPNL.xaml"
     this.dataGrid1.LoadingRow += new System.EventHandler<System.Windows.Controls.DataGridRowEventArgs>(this.OnLoadingRow);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
Ejemplo n.º 48
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     
     #line 51 "..\..\..\..\..\..\View\SystemSetting\BusinessPartnerSetting\BusinessPartnerHome.xaml"
     ((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.PartnerEditCanExecute);
     
     #line default
     #line hidden
     
     #line 52 "..\..\..\..\..\..\View\SystemSetting\BusinessPartnerSetting\BusinessPartnerHome.xaml"
     ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.PartnerEditExecuted);
     
     #line default
     #line hidden
     return;
     case 2:
     
     #line 53 "..\..\..\..\..\..\View\SystemSetting\BusinessPartnerSetting\BusinessPartnerHome.xaml"
     ((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.PartnerDeleteCanExecute);
     
     #line default
     #line hidden
     
     #line 54 "..\..\..\..\..\..\View\SystemSetting\BusinessPartnerSetting\BusinessPartnerHome.xaml"
     ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.PartnerDeleteExecuted);
     
     #line default
     #line hidden
     return;
     case 3:
     
     #line 55 "..\..\..\..\..\..\View\SystemSetting\BusinessPartnerSetting\BusinessPartnerHome.xaml"
     ((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.PartnerViewCanExecute);
     
     #line default
     #line hidden
     
     #line 56 "..\..\..\..\..\..\View\SystemSetting\BusinessPartnerSetting\BusinessPartnerHome.xaml"
     ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.PartnerViewExecuted);
     
     #line default
     #line hidden
     return;
     case 4:
     this.rootGrid = ((System.Windows.Controls.Grid)(target));
     return;
     case 5:
     this.lbTitle = ((System.Windows.Controls.Label)(target));
     return;
     case 6:
     this.btnAdd = ((System.Windows.Controls.Button)(target));
     
     #line 64 "..\..\..\..\..\..\View\SystemSetting\BusinessPartnerSetting\BusinessPartnerHome.xaml"
     this.btnAdd.Click += new System.Windows.RoutedEventHandler(this.BtnAddClick);
     
     #line default
     #line hidden
     return;
     case 7:
     this.separator1 = ((System.Windows.Controls.Separator)(target));
     return;
     case 8:
     this.groupBox1 = ((System.Windows.Controls.GroupBox)(target));
     return;
     case 9:
     this.label2 = ((System.Windows.Controls.Label)(target));
     return;
     case 10:
     this.txtName = ((System.Windows.Controls.TextBox)(target));
     return;
     case 11:
     this.label3 = ((System.Windows.Controls.Label)(target));
     return;
     case 12:
     this.comboBoxType = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 13:
     this.btnSearch = ((System.Windows.Controls.Button)(target));
     
     #line 79 "..\..\..\..\..\..\View\SystemSetting\BusinessPartnerSetting\BusinessPartnerHome.xaml"
     this.btnSearch.Click += new System.Windows.RoutedEventHandler(this.BtnSearchClick);
     
     #line default
     #line hidden
     return;
     case 14:
     this.separator2 = ((System.Windows.Controls.Separator)(target));
     return;
     case 15:
     this.pgPartners = ((Utility.Controls.PagingControl)(target));
     return;
     case 16:
     this.dataGridPartner = ((System.Windows.Controls.DataGrid)(target));
     
     #line 87 "..\..\..\..\..\..\View\SystemSetting\BusinessPartnerSetting\BusinessPartnerHome.xaml"
     this.dataGridPartner.LoadingRow += new System.EventHandler<System.Windows.Controls.DataGridRowEventArgs>(this.DataGridPartnerLoadingRow);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
Ejemplo n.º 49
0
        private static void TextBoxBaseContextMenuOpening(object sender, ContextMenuEventArgs e)
        {
            var tbBase = (TextBoxBase)sender;
            var textBox = tbBase as TextBox;
            var richTextBox = tbBase as RichTextBox;

            tbBase.ContextMenu = GetDefaultTextBoxBaseContextMenu();

            var cmdIndex = 0;
            var spellingError = textBox != null
                ? textBox.GetSpellingError(textBox.CaretIndex)
                : (richTextBox != null
                    ? richTextBox.GetSpellingError(richTextBox.CaretPosition)
                    : null);
            if (spellingError != null) {
                var suggestions = spellingError.Suggestions;
                if (suggestions.Any()) {
                    foreach (var suggestion in suggestions) {
                        var mi = new MenuItem();
                        mi.Header = suggestion;
                        mi.FontWeight = FontWeights.Bold;
                        mi.Command = EditingCommands.CorrectSpellingError;
                        mi.CommandParameter = suggestion;
                        mi.CommandTarget = tbBase;
                        mi.SetResourceReference(FrameworkElement.StyleProperty, "MetroMenuItem");
                        tbBase.ContextMenu.Items.Insert(cmdIndex, mi);
                        cmdIndex++;
                    }
                    // add a separator
                    tbBase.ContextMenu.Items.Insert(cmdIndex, new Separator());
                    cmdIndex++;
                }
                var ignoreAllMI = new MenuItem();
                ignoreAllMI.Header = "Ignore All";
                ignoreAllMI.Command = EditingCommands.IgnoreSpellingError;
                ignoreAllMI.CommandTarget = tbBase;
                ignoreAllMI.SetResourceReference(FrameworkElement.StyleProperty, "MetroMenuItem");
                tbBase.ContextMenu.Items.Insert(cmdIndex, ignoreAllMI);
                cmdIndex++;
                // add another separator
                var separatorMenuItem2 = new Separator();
                tbBase.ContextMenu.Items.Insert(cmdIndex, separatorMenuItem2);
            }
        }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.txtArrivo = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 2:
     this.datepickerArrivo = ((System.Windows.Controls.DatePicker)(target));
     
     #line 9 "..\..\..\VerificaDisponibilitaWindow.xaml"
     this.datepickerArrivo.SelectedDateChanged += new System.EventHandler<System.Windows.Controls.SelectionChangedEventArgs>(this.datepickerArrivo_SelectedDateChanged);
     
     #line default
     #line hidden
     return;
     case 3:
     this.txtPartenza = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 4:
     this.datepickerPartenza = ((System.Windows.Controls.DatePicker)(target));
     
     #line 11 "..\..\..\VerificaDisponibilitaWindow.xaml"
     this.datepickerPartenza.SelectedDateChanged += new System.EventHandler<System.Windows.Controls.SelectionChangedEventArgs>(this.datepickerPartenza_SelectedDateChanged);
     
     #line default
     #line hidden
     return;
     case 5:
     this.txtNotti = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 6:
     this.txtboxNotti = ((System.Windows.Controls.TextBox)(target));
     return;
     case 7:
     this.separator1 = ((System.Windows.Controls.Separator)(target));
     return;
     case 8:
     this.btnSearch = ((System.Windows.Controls.Button)(target));
     
     #line 15 "..\..\..\VerificaDisponibilitaWindow.xaml"
     this.btnSearch.Click += new System.Windows.RoutedEventHandler(this.btnSearch_Click);
     
     #line default
     #line hidden
     return;
     case 9:
     this.dataGridCamere = ((System.Windows.Controls.DataGrid)(target));
     return;
     case 10:
     this.btnAdd = ((System.Windows.Controls.Button)(target));
     
     #line 39 "..\..\..\VerificaDisponibilitaWindow.xaml"
     this.btnAdd.Click += new System.Windows.RoutedEventHandler(this.btnAdd_Click);
     
     #line default
     #line hidden
     return;
     case 11:
     this.btnSub = ((System.Windows.Controls.Button)(target));
     
     #line 40 "..\..\..\VerificaDisponibilitaWindow.xaml"
     this.btnSub.Click += new System.Windows.RoutedEventHandler(this.btnSub_Click);
     
     #line default
     #line hidden
     return;
     case 12:
     this.btnPrenota = ((System.Windows.Controls.Button)(target));
     
     #line 41 "..\..\..\VerificaDisponibilitaWindow.xaml"
     this.btnPrenota.Click += new System.Windows.RoutedEventHandler(this.btnPrenota_Click);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
Ejemplo n.º 51
0
        public StatusBarItems()
        {
            m_StatusDisplay = new List<StatusBarItem>();

            StatusBarItem item = new StatusBarItem();

            StackPanel panel = new StackPanel();

            TextBlock blck = new TextBlock();
            Binding textBinding = new Binding("ImageCursorCoordX") { Source = this, };
            textBinding.Mode = BindingMode.OneWay;
            blck.SetBinding(TextBlock.TextProperty, textBinding);
            blck.DataContext = ImageCursorCoordX;
            blck.Width = 50;
            panel.Children.Add(blck);
       
            Separator separator = new Separator();
            panel.Children.Add(separator);
            
            blck = new TextBlock();
            textBinding = new Binding("ImageCursorCoordY") { Source = this, };
            textBinding.Mode = BindingMode.OneWay;
            blck.SetBinding(TextBlock.TextProperty, textBinding);
            blck.DataContext = ImageCursorCoordY;
            blck.Width = 50;
            panel.Children.Add(blck);
            
            separator = new Separator();
            panel.Children.Add(separator);
            
            blck = new TextBlock();
            textBinding = new Binding("ImageCursorPixelVal") { Source = this, };
            textBinding.Mode = BindingMode.OneWay;
            blck.SetBinding(TextBlock.TextProperty, textBinding);
            blck.DataContext = ImageCursorPixelVal;
            blck.Width = 80;
            panel.Children.Add(blck);
           
            separator = new Separator();
            panel.Children.Add(separator);
            
            blck = new TextBlock();
            textBinding = new Binding("ImageCursorBoardVal") { Source = this, };
            textBinding.Mode = BindingMode.OneWay;
            blck.SetBinding(TextBlock.TextProperty, textBinding);
            blck.DataContext = ImageCursorBoardVal;
            blck.Width = 50;
            panel.Children.Add(blck);
           
            separator = new Separator();
            panel.Children.Add(separator);
            
            blck = new TextBlock();
            textBinding = new Binding("ImageCursorDetectorVal") { Source = this, };
            textBinding.Mode = BindingMode.OneWay;
            blck.SetBinding(TextBlock.TextProperty, textBinding);
            blck.DataContext = ImageCursorDetectorVal;
            blck.Width = 45;
            panel.Children.Add(blck);
            
            separator = new Separator();
            panel.Children.Add(separator);
            
            blck = new TextBlock();
            textBinding = new Binding("ImageWidth") { Source = this, };
            textBinding.Mode = BindingMode.OneWay;
            blck.SetBinding(TextBlock.TextProperty, textBinding);
            blck.DataContext = ImageWidth;
            blck.Width = 75;
            panel.Children.Add(blck);
           
            separator = new Separator();
            panel.Children.Add(separator);
            
            blck = new TextBlock();
            textBinding = new Binding("ImageHeight") { Source = this, };
            textBinding.Mode = BindingMode.OneWay;
            blck.SetBinding(TextBlock.TextProperty, textBinding);
            blck.DataContext = ImageHeight;
            blck.Width = 75;
            panel.Children.Add(blck);
            
            separator = new Separator();
            panel.Children.Add(separator);
            
            blck = new TextBlock();
            textBinding = new Binding("ZoomFactor") { Source = this, };
            textBinding.Mode = BindingMode.OneWay;
            blck.SetBinding(TextBlock.TextProperty, textBinding);
            blck.DataContext = ZoomFactor;
            blck.Width = 75;
            panel.Children.Add(blck);           

            panel.Orientation = Orientation.Horizontal;
            item.Content = panel;
            item.HorizontalContentAlignment = System.Windows.HorizontalAlignment.Right;
            m_StatusDisplay.Add(item);
        }
Ejemplo n.º 52
0
        private async void RefreshLogs()
        {
            var message = await QueryLogs();

            if (message != null)
            {
                var windows = new NoticeWindow();
                NoticeWindow.message = message;
                windows.Height = 0;
                windows.Top = screenTopEdge + 8;
                windows.Left = (screenWidth / 2) - (windows.Width / 2);
                if (screenLeftEdge > 0 || screenLeftEdge < -8) { windows.Left += screenLeftEdge; }
                windows.ShowDialog();
            }
            else
            {
                using (var context = new DatabaseContext())
                {
                    var textBlock = new TextBlock();
                    var logs = context.Logs.OrderByDescending(c => c.LogId).ToList();
                    Thickness margin = textBlock.Margin;
                    var specificStackPanel = new StackPanel();
                    var wholeStackPanel = new StackPanel();
                    var separator = new Separator();
                    BrushConverter conveter = new BrushConverter();
                    Brush brush = conveter.ConvertFromString("#FF0069FF") as Brush;

                    textBlock.TextWrapping = TextWrapping.Wrap;
                    wholeStackPanel.Height = Double.NaN;
                    specificStackPanel.Height = Double.NaN;

                    sbLogs.Content = null;
                    wholeStackPanel.Children.Clear();
                    foreach (var log in logs)
                    {
                        //textblock for date and time
                        specificStackPanel = new StackPanel();
                        textBlock = new TextBlock();
                        textBlock.Text = Convert.ToDateTime(log.Date).ToString("MMMM d, yyyy") + " " +
                            Convert.ToDateTime(log.Time).ToString("hh:mm:ss tt");
                        margin.Top = 5;
                        margin.Bottom = 5;
                        margin.Left = 10;
                        margin.Right = 10;
                        textBlock.Margin = margin;
                        specificStackPanel.Children.Add(textBlock);

                        //textblock for log description
                        textBlock = new TextBlock();
                        textBlock.Text = log.Description;
                        margin.Top = 0;
                        margin.Bottom = 5;
                        margin.Left = 10;
                        margin.Right = 20;
                        textBlock.Margin = margin;
                        specificStackPanel.Children.Add(textBlock);
                        separator = new Separator();
                        brush = conveter.ConvertFromString("#FF0069FF") as Brush;
                        separator.BorderBrush = brush;
                        specificStackPanel.Children.Add(separator);
                        wholeStackPanel.Children.Add(specificStackPanel);
                    }

                    sbLogs.Content = wholeStackPanel;
                    lblTotalLogs.Text = "Total : " + logs.Count();
                }
            }
        }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.rootGrid = ((System.Windows.Controls.Grid)(target));
     return;
     case 2:
     this.groupBox1 = ((System.Windows.Controls.GroupBox)(target));
     return;
     case 3:
     this.label2 = ((System.Windows.Controls.Label)(target));
     return;
     case 4:
     this.label3 = ((System.Windows.Controls.Label)(target));
     return;
     case 5:
     this.label4 = ((System.Windows.Controls.Label)(target));
     return;
     case 6:
     this.datePicker1 = ((System.Windows.Controls.DatePicker)(target));
     return;
     case 7:
     this.datePicker2 = ((System.Windows.Controls.DatePicker)(target));
     return;
     case 8:
     this.label5 = ((System.Windows.Controls.Label)(target));
     return;
     case 9:
     this.label6 = ((System.Windows.Controls.Label)(target));
     return;
     case 10:
     this.comboBox1 = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 11:
     this.comboBox2 = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 12:
     this.button1 = ((System.Windows.Controls.Button)(target));
     
     #line 49 "..\..\..\..\..\View\Reports\BusinessPartnerContractOrder.xaml"
     this.button1.Click += new System.Windows.RoutedEventHandler(this.Button1Click);
     
     #line default
     #line hidden
     return;
     case 13:
     this.comboBox3 = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 14:
     this.separator1 = ((System.Windows.Controls.Separator)(target));
     return;
     case 15:
     this.dataGrid1 = ((System.Windows.Controls.DataGrid)(target));
     return;
     case 16:
     this.lbTitle = ((System.Windows.Controls.Label)(target));
     return;
     }
     this._contentLoaded = true;
 }
Ejemplo n.º 54
0
 private void InsertMenuItems()
 {
     if (_recentFiles != null)
     {
         if (_recentFiles.Count != 0)
         {
             var num = FileMenu.Items.IndexOf(this);
             foreach (var current in _recentFiles)
             {
                 var menuItemText = GetMenuItemText(current.Number + 1, current.Filepath, current.DisplayPath);
                 current.MenuItem = new MenuItem
                 {
                     Header = menuItemText
                 };
                 current.MenuItem.Click += MenuItemClick;
                 FileMenu.Items.Insert(++num, current.MenuItem);
             }
             _separator = new Separator();
             FileMenu.Items.Insert(++num, _separator);
         }
     }
 }
Ejemplo n.º 55
0
        /// <summary>
        /// Creates a new Editor Manager
        /// </summary>
        /// <param name="editor">AvalonEdit Editor</param>
        public EditorManager(TextEditor editor)
        {
            SyntaxManager.Initialise();
            AutoCompleteManager.Initialise();
            this._editor = editor;

            //Set up the Context Menu
            MenuItem cut = new MenuItem();
            cut.Header = "Cut";
            cut.InputGestureText = "Ctrl+X";
            cut.Command = ApplicationCommands.Cut;
            this._contextMenu.Items.Add(cut);
            MenuItem copy = new MenuItem();
            copy.Header = "Copy";
            copy.InputGestureText = "Ctrl+C";
            copy.Command = ApplicationCommands.Copy;
            this._contextMenu.Items.Add(copy);
            MenuItem paste = new MenuItem();
            paste.Header = "Paste";
            paste.InputGestureText = "Ctrl+V";
            paste.Command = ApplicationCommands.Paste;
            this._contextMenu.Items.Add(paste);
            Separator sep = new Separator();
            this._contextMenu.Items.Add(sep);
            this._select.Header = "Select Surrounding Symbol";
            this._select.Click += new RoutedEventHandler(SelectSymbolClick);
            this._contextMenu.Items.Add(this._select);
            this._contextMenu.Opened += new RoutedEventHandler(ContextMenuOpened);
            this._editor.ContextMenu = this._contextMenu;

            //Register Event Handlers for the Editor
            this._editor.TextChanged += new EventHandler(EditorTextChanged);
            this._editor.TextArea.TextEntering += new TextCompositionEventHandler(EditorTextEntering);
            this._editor.TextArea.TextEntered += new TextCompositionEventHandler(EditorTextEntered);
            this._editor.TextArea.Caret.PositionChanged += new EventHandler(EditorCaretPositionChanged);
            this._editor.Document.Changed += new EventHandler<DocumentChangeEventArgs>(EditorDocumentChanged);
            this._editor.Document.UpdateFinished += new EventHandler(EditorDocumentUpdateFinished);
            this._editor.TextArea.MouseDoubleClick += new MouseButtonEventHandler(EditorTextDoubleClick);

            //Add the Validation Error Element Generator
            this._editor.TextArea.TextView.ElementGenerators.Add(new ValidationErrorElementGenerator(this));
        }
Ejemplo n.º 56
0
 public void AddSeparator(MenuBarType type, Separator separatorObj, int index = -1)
 {
     AddItemToMenu(type, separatorObj, index);
 }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.rootGrid = ((System.Windows.Controls.Grid)(target));
     return;
     case 2:
     this.lbTitle = ((System.Windows.Controls.Label)(target));
     return;
     case 3:
     this.separator1 = ((System.Windows.Controls.Separator)(target));
     return;
     case 4:
     this.dataGrid1 = ((System.Windows.Controls.DataGrid)(target));
     return;
     case 5:
     this.groupBox1 = ((System.Windows.Controls.GroupBox)(target));
     return;
     case 6:
     this.label3 = ((System.Windows.Controls.Label)(target));
     return;
     case 7:
     this.comboBox1 = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 8:
     this.label5 = ((System.Windows.Controls.Label)(target));
     return;
     case 9:
     this.comboBox3 = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 10:
     this.label2 = ((System.Windows.Controls.Label)(target));
     return;
     case 11:
     this.textBox1 = ((System.Windows.Controls.TextBox)(target));
     return;
     case 12:
     this.button1 = ((System.Windows.Controls.Button)(target));
     
     #line 114 "..\..\..\..\..\View\Reports\QuotaInvoiceDetailReport.xaml"
     this.button1.Click += new System.Windows.RoutedEventHandler(this.Button1Click);
     
     #line default
     #line hidden
     return;
     case 13:
     this.label4 = ((System.Windows.Controls.Label)(target));
     return;
     case 14:
     this.comboBox2 = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 15:
     this.label6 = ((System.Windows.Controls.Label)(target));
     return;
     case 16:
     this.datePicker1 = ((System.Windows.Controls.DatePicker)(target));
     return;
     case 17:
     this.label7 = ((System.Windows.Controls.Label)(target));
     return;
     case 18:
     this.datePicker2 = ((System.Windows.Controls.DatePicker)(target));
     return;
     case 19:
     this.button3 = ((System.Windows.Controls.Button)(target));
     
     #line 133 "..\..\..\..\..\View\Reports\QuotaInvoiceDetailReport.xaml"
     this.button3.Click += new System.Windows.RoutedEventHandler(this.Button3Click);
     
     #line default
     #line hidden
     return;
     case 20:
     this.label1 = ((System.Windows.Controls.Label)(target));
     return;
     case 21:
     this.comboBox4 = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 22:
     this.button2 = ((System.Windows.Controls.Button)(target));
     
     #line 136 "..\..\..\..\..\View\Reports\QuotaInvoiceDetailReport.xaml"
     this.button2.Click += new System.Windows.RoutedEventHandler(this.Button2Click);
     
     #line default
     #line hidden
     return;
     case 23:
     this.button4 = ((System.Windows.Controls.Button)(target));
     
     #line 137 "..\..\..\..\..\View\Reports\QuotaInvoiceDetailReport.xaml"
     this.button4.Click += new System.Windows.RoutedEventHandler(this.button4_Click);
     
     #line default
     #line hidden
     return;
     case 24:
     this.label8 = ((System.Windows.Controls.Label)(target));
     return;
     case 25:
     this.label9 = ((System.Windows.Controls.Label)(target));
     return;
     case 26:
     this.label10 = ((System.Windows.Controls.Label)(target));
     return;
     case 27:
     this.label11 = ((System.Windows.Controls.Label)(target));
     return;
     }
     this._contentLoaded = true;
 }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 29 "..\..\..\..\RDLCPrinter\MrDSoft.RDLC\RDLCReportViewer.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.CommandBinding_Executed);

            #line default
            #line hidden
                return;

            case 2:
                this.ToolBarRow = ((System.Windows.Controls.ToolBar)(target));

            #line 41 "..\..\..\..\RDLCPrinter\MrDSoft.RDLC\RDLCReportViewer.xaml"
                this.ToolBarRow.Loaded += new System.Windows.RoutedEventHandler(this.ToolBarRow_Loaded);

            #line default
            #line hidden
                return;

            case 3:
                this.TBBRefresh = ((System.Windows.Controls.Button)(target));

            #line 42 "..\..\..\..\RDLCPrinter\MrDSoft.RDLC\RDLCReportViewer.xaml"
                this.TBBRefresh.Click += new System.Windows.RoutedEventHandler(this.cmdRefresh_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.TBBPrint = ((System.Windows.Controls.Button)(target));

            #line 46 "..\..\..\..\RDLCPrinter\MrDSoft.RDLC\RDLCReportViewer.xaml"
                this.TBBPrint.Click += new System.Windows.RoutedEventHandler(this.cmdPrint_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.TBBPrintWithProperties = ((System.Windows.Controls.Button)(target));

            #line 49 "..\..\..\..\RDLCPrinter\MrDSoft.RDLC\RDLCReportViewer.xaml"
                this.TBBPrintWithProperties.Click += new System.Windows.RoutedEventHandler(this.TBBPrintWithProperties_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.ExportDefault = ((System.Windows.Controls.Button)(target));

            #line 58 "..\..\..\..\RDLCPrinter\MrDSoft.RDLC\RDLCReportViewer.xaml"
                this.ExportDefault.Click += new System.Windows.RoutedEventHandler(this.ExportDefault_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.ExportMenu = ((System.Windows.Controls.Menu)(target));
                return;

            case 8:

            #line 66 "..\..\..\..\RDLCPrinter\MrDSoft.RDLC\RDLCReportViewer.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItemWord_Click);

            #line default
            #line hidden
                return;

            case 9:

            #line 71 "..\..\..\..\RDLCPrinter\MrDSoft.RDLC\RDLCReportViewer.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItemExcel_Click);

            #line default
            #line hidden
                return;

            case 10:

            #line 76 "..\..\..\..\RDLCPrinter\MrDSoft.RDLC\RDLCReportViewer.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItemPNG_Click);

            #line default
            #line hidden
                return;

            case 11:

            #line 81 "..\..\..\..\RDLCPrinter\MrDSoft.RDLC\RDLCReportViewer.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.ExportDefault_Click);

            #line default
            #line hidden
                return;

            case 12:
                this.ZoomInfoStackPanel = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 13:
                this.ZoomValueTextBloc = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 14:
                this.ZoomPopupButton = ((System.Windows.Controls.Primitives.ToggleButton)(target));

            #line 94 "..\..\..\..\RDLCPrinter\MrDSoft.RDLC\RDLCReportViewer.xaml"
                this.ZoomPopupButton.Click += new System.Windows.RoutedEventHandler(this.ZoomPopupButton_Click);

            #line default
            #line hidden
                return;

            case 15:
                this.ActualSizeButton = ((System.Windows.Controls.Button)(target));

            #line 97 "..\..\..\..\RDLCPrinter\MrDSoft.RDLC\RDLCReportViewer.xaml"
                this.ActualSizeButton.Click += new System.Windows.RoutedEventHandler(this.ActualSizeButton_Click);

            #line default
            #line hidden
                return;

            case 16:
                this.PagerSeparator = ((System.Windows.Controls.Separator)(target));
                return;

            case 17:
                this.FirstImage = ((System.Windows.Controls.Button)(target));

            #line 102 "..\..\..\..\RDLCPrinter\MrDSoft.RDLC\RDLCReportViewer.xaml"
                this.FirstImage.Click += new System.Windows.RoutedEventHandler(this.FirstImage_Click);

            #line default
            #line hidden
                return;

            case 18:
                this.PreviousImage = ((System.Windows.Controls.Button)(target));

            #line 105 "..\..\..\..\RDLCPrinter\MrDSoft.RDLC\RDLCReportViewer.xaml"
                this.PreviousImage.Click += new System.Windows.RoutedEventHandler(this.PreviousImage_Click);

            #line default
            #line hidden
                return;

            case 19:
                this.PageSpinner = ((DSoft.RDLCReport.LightIntergerSpinner)(target));
                return;

            case 20:
                this.NextImage = ((System.Windows.Controls.Button)(target));

            #line 111 "..\..\..\..\RDLCPrinter\MrDSoft.RDLC\RDLCReportViewer.xaml"
                this.NextImage.Click += new System.Windows.RoutedEventHandler(this.NextImage_Click);

            #line default
            #line hidden
                return;

            case 21:
                this.LastImage = ((System.Windows.Controls.Button)(target));

            #line 114 "..\..\..\..\RDLCPrinter\MrDSoft.RDLC\RDLCReportViewer.xaml"
                this.LastImage.Click += new System.Windows.RoutedEventHandler(this.LastImage_Click);

            #line default
            #line hidden
                return;

            case 22:
                this.ZoomPopup = ((System.Windows.Controls.Primitives.Popup)(target));

            #line 120 "..\..\..\..\RDLCPrinter\MrDSoft.RDLC\RDLCReportViewer.xaml"
                this.ZoomPopup.Closed += new System.EventHandler(this.ZoomPopup_Closed);

            #line default
            #line hidden
                return;

            case 23:
                this.ZoomSlider = ((System.Windows.Controls.Slider)(target));

            #line 132 "..\..\..\..\RDLCPrinter\MrDSoft.RDLC\RDLCReportViewer.xaml"
                this.ZoomSlider.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.ZoomSlider_ValueChanged);

            #line default
            #line hidden

            #line 134 "..\..\..\..\RDLCPrinter\MrDSoft.RDLC\RDLCReportViewer.xaml"
                this.ZoomSlider.MouseWheel += new System.Windows.Input.MouseWheelEventHandler(this.ZoomSlider_MouseWheel);

            #line default
            #line hidden
                return;

            case 24:
                this.fixToWindowLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 25:
                this.FitToWindowButton = ((System.Windows.Controls.Button)(target));

            #line 140 "..\..\..\..\RDLCPrinter\MrDSoft.RDLC\RDLCReportViewer.xaml"
                this.FitToWindowButton.Click += new System.Windows.RoutedEventHandler(this.FitToWindowButton_Click);

            #line default
            #line hidden
                return;

            case 26:
                this.ZoomReglageLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 27:
                this.PerCent50Button = ((System.Windows.Controls.Button)(target));

            #line 149 "..\..\..\..\RDLCPrinter\MrDSoft.RDLC\RDLCReportViewer.xaml"
                this.PerCent50Button.Click += new System.Windows.RoutedEventHandler(this.PerCent50Button_Click);

            #line default
            #line hidden
                return;

            case 28:
                this.PerCent100Button = ((System.Windows.Controls.Button)(target));

            #line 155 "..\..\..\..\RDLCPrinter\MrDSoft.RDLC\RDLCReportViewer.xaml"
                this.PerCent100Button.Click += new System.Windows.RoutedEventHandler(this.PerCent100Button_Click);

            #line default
            #line hidden
                return;

            case 29:
                this.PerCent150Button = ((System.Windows.Controls.Button)(target));

            #line 161 "..\..\..\..\RDLCPrinter\MrDSoft.RDLC\RDLCReportViewer.xaml"
                this.PerCent150Button.Click += new System.Windows.RoutedEventHandler(this.PerCent150Button_Click);

            #line default
            #line hidden
                return;

            case 30:
                this.PerCent200Button = ((System.Windows.Controls.Button)(target));

            #line 167 "..\..\..\..\RDLCPrinter\MrDSoft.RDLC\RDLCReportViewer.xaml"
                this.PerCent200Button.Click += new System.Windows.RoutedEventHandler(this.PerCent200Button_Click);

            #line default
            #line hidden
                return;

            case 31:
                this.PerCent250Button = ((System.Windows.Controls.Button)(target));

            #line 173 "..\..\..\..\RDLCPrinter\MrDSoft.RDLC\RDLCReportViewer.xaml"
                this.PerCent250Button.Click += new System.Windows.RoutedEventHandler(this.PerCent250Button_Click);

            #line default
            #line hidden
                return;

            case 32:
                this.ImageScrollViewer = ((System.Windows.Controls.ScrollViewer)(target));
                return;

            case 33:
                this.ImgBorber = ((System.Windows.Controls.Border)(target));
                return;

            case 34:
                this.PreviewImage = ((System.Windows.Controls.Image)(target));
                return;

            case 35:
                this.ZoomGroup = ((System.Windows.Media.TransformGroup)(target));
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 59
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.MainPane = ((System.Windows.Controls.ScrollViewer)(target));
     return;
     case 2:
     this.progressBar = ((System.Windows.Controls.ProgressBar)(target));
     
     #line 15 "..\..\TabPage.xaml"
     this.progressBar.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler<double>(this.ProgressBar_ValueChanged_1);
     
     #line default
     #line hidden
     return;
     case 3:
     this.searchBox = ((System.Windows.Controls.TextBox)(target));
     
     #line 16 "..\..\TabPage.xaml"
     this.searchBox.KeyDown += new System.Windows.Input.KeyEventHandler(this.onKey);
     
     #line default
     #line hidden
     return;
     case 4:
     this.cancel = ((System.Windows.Controls.Button)(target));
     
     #line 17 "..\..\TabPage.xaml"
     this.cancel.Click += new System.Windows.RoutedEventHandler(this.cancelSearch);
     
     #line default
     #line hidden
     return;
     case 5:
     this.btnGo = ((System.Windows.Controls.Button)(target));
     
     #line 21 "..\..\TabPage.xaml"
     this.btnGo.Click += new System.Windows.RoutedEventHandler(this.search);
     
     #line default
     #line hidden
     return;
     case 6:
     this.btnShowFav = ((System.Windows.Controls.Button)(target));
     
     #line 68 "..\..\TabPage.xaml"
     this.btnShowFav.Click += new System.Windows.RoutedEventHandler(this.showFav);
     
     #line default
     #line hidden
     return;
     case 7:
     this.btnHelp = ((System.Windows.Controls.Button)(target));
     
     #line 116 "..\..\TabPage.xaml"
     this.btnHelp.Click += new System.Windows.RoutedEventHandler(this.help);
     
     #line default
     #line hidden
     return;
     case 8:
     this.SearchWrap = ((System.Windows.Controls.Grid)(target));
     return;
     case 9:
     this.SearchPane = ((System.Windows.Controls.Grid)(target));
     return;
     case 10:
     this.radioAuthor = ((System.Windows.Controls.RadioButton)(target));
     return;
     case 11:
     this.radioJournal = ((System.Windows.Controls.RadioButton)(target));
     return;
     case 12:
     this.radioCitations = ((System.Windows.Controls.RadioButton)(target));
     return;
     case 13:
     this.radioDate = ((System.Windows.Controls.RadioButton)(target));
     return;
     case 14:
     this.yearStart = ((System.Windows.Controls.TextBox)(target));
     return;
     case 15:
     this.yearEnd = ((System.Windows.Controls.TextBox)(target));
     return;
     case 16:
     this.checkBoxCustomRange = ((System.Windows.Controls.CheckBox)(target));
     
     #line 178 "..\..\TabPage.xaml"
     this.checkBoxCustomRange.Click += new System.Windows.RoutedEventHandler(this.checkBoxCustomRange_Click);
     
     #line default
     #line hidden
     return;
     case 17:
     this.btnAddFav = ((System.Windows.Controls.Label)(target));
     
     #line 179 "..\..\TabPage.xaml"
     this.btnAddFav.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.addFav);
     
     #line default
     #line hidden
     return;
     case 18:
     this.btnExport = ((System.Windows.Controls.Button)(target));
     
     #line 182 "..\..\TabPage.xaml"
     this.btnExport.Click += new System.Windows.RoutedEventHandler(this.export);
     
     #line default
     #line hidden
     return;
     case 19:
     this.sep1 = ((System.Windows.Controls.Separator)(target));
     return;
     case 20:
     this.sep2 = ((System.Windows.Controls.Separator)(target));
     return;
     case 21:
     this.ResultScroll = ((System.Windows.Controls.Grid)(target));
     return;
     case 22:
     this.ResultsPane = ((System.Windows.Controls.ListBox)(target));
     return;
     case 23:
     this.previewPane = ((System.Windows.Controls.ScrollViewer)(target));
     return;
     case 24:
     
     #line 248 "..\..\TabPage.xaml"
     ((System.Windows.Controls.StackPanel)(target)).Loaded += new System.Windows.RoutedEventHandler(this.keyFocus);
     
     #line default
     #line hidden
     return;
     case 25:
     this.Author = ((System.Windows.Controls.Grid)(target));
     return;
     case 26:
     this.Journal = ((System.Windows.Controls.Grid)(target));
     return;
     case 27:
     this.Paper = ((System.Windows.Controls.Grid)(target));
     return;
     case 28:
     this.Pagination = ((System.Windows.Controls.Primitives.UniformGrid)(target));
     return;
     case 29:
     this.statusBar = ((System.Windows.Controls.Primitives.StatusBar)(target));
     return;
     case 30:
     this.textbox = ((System.Windows.Controls.TextBlock)(target));
     return;
     }
     this._contentLoaded = true;
 }
Ejemplo n.º 60
0
 private void RemoveMenuItems()
 {
     if (_separator != null)
     {
         FileMenu.Items.Remove(_separator);
     }
     if (_recentFiles != null)
     {
         foreach (var current in
             from r in _recentFiles
             where r.MenuItem != null
             select r)
         {
             FileMenu.Items.Remove(current.MenuItem);
         }
     }
     _separator = null;
     _recentFiles = null;
 }