コード例 #1
0
ファイル: AWindow.cs プロジェクト: raven-ie/MASGAU
        public AWindow(IWindow owner)
            : base(owner, Core.settings)
        {
            TabItem from_me = new TabItem();
            from_me.BeginInit();
            from_me.EndInit();
            this.Background = from_me.Background;
            ProgressBar from_color = new ProgressBar();
            default_progress_color = from_color.Foreground;

            // Taskbar progress setup
            TaskbarItemInfo = new TaskbarItemInfo();
            //            var uriSource = new Uri(System.IO.Path.Combine(Core.ExecutablePath, "masgau.ico"), UriKind.Relative);

            System.Drawing.Icon ico = Properties.Resources.MASGAUIcon;

            this.Icon = System.Windows.Interop.Imaging.CreateBitmapSourceFromHBitmap(
                    ico.ToBitmap().GetHbitmap(),
                    IntPtr.Zero,
                    Int32Rect.Empty,
                    BitmapSizeOptions.FromEmptyOptions());

            if (owner != null) {
                this.Owner = owner as System.Windows.Window;
                this.WindowStartupLocation = System.Windows.WindowStartupLocation.CenterOwner;
            } else {
                this.WindowStartupLocation = System.Windows.WindowStartupLocation.CenterScreen;
            }
        }
コード例 #2
0
        public MainWindow()
        {
            InitializeComponent();
            var status = new StatusWM
            {
                Status = "",
                Media = null,
                Check = false
            };
            DataContext = status;

            if (Settings.Default.token == "")
                AuthStart();

            TaskbarItemInfo = new TaskbarItemInfo();
            StatusArea.KeyDown += StatusAreaOnKeyDown;

            ContextMenuGen();

            tokens = Tokens.Create(Twitter.CK, Twitter.CS,
                Settings.Default.token,
                Settings.Default.secret
                );

            mediaAsyncExtend = new MediaAsyncExtend(tokens);
        }
コード例 #3
0
        public WindowExplorer()
        {
            this.Language = System.Windows.Markup.XmlLanguage.GetLanguage(System.Threading.Thread.CurrentThread.CurrentCulture.IetfLanguageTag);
            InitializeComponent();

            try
            {
                object taskbarList = Activator.CreateInstance(Type.GetTypeFromCLSID(new Guid("56FDF344-FD6D-11d0-958A-006097C9A090")));
                taskbarList = null;

                TaskbarItemInfo taskbar = new TaskbarItemInfo();
                BindingOperations.SetBinding(taskbar, TaskbarItemInfo.ProgressStateProperty, new Binding("ProgressState"));
                BindingOperations.SetBinding(taskbar, TaskbarItemInfo.ProgressValueProperty, new Binding("ProgressValue"));
                this.TaskbarItemInfo = taskbar;
            }
            catch
            {
                // This is to replace the Xaml code below that implments TaskbarInfoItem, and instead do it through code, so that it can catch a little known error.
                //    System.OutOfMemoryException: Retrieving the COM class factory for component with CLSID {56FDF344-FD6D-11D0-958A-006097C9A090} failed 
                //    due to the following error: 8007000e Not enough storage is available to complete this operation. (Exception from HRESULT: 0x8007000E (E_OUTOFMEMORY)).
                // The cause of this error is unknown, but there have been 4 reported cases of this issue during the life of SEToolbox so far.
                // In this case, the progress bar has been coded to gracefully degrade if this issue occurs.

                //<Window.TaskbarItemInfo>
                //<TaskbarItemInfo ProgressState="{Binding ProgressState}" ProgressValue="{Binding ProgressValue}" />
                //</Window.TaskbarItemInfo>
            }

        }
コード例 #4
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Vlive = ((WpfApplication1.MainWindow)(target));
                return;

            case 2:
                this.HamburgerMenuControl = ((MahApps.Metro.Controls.HamburgerMenu)(target));

#line 89 "..\..\..\MainWindow.xaml"
                this.HamburgerMenuControl.ItemClick += new MahApps.Metro.Controls.ItemClickEventHandler(this.HamburgerMenuControl_OnItemClick);

#line default
#line hidden

#line 90 "..\..\..\MainWindow.xaml"
                this.HamburgerMenuControl.OptionsItemClick += new MahApps.Metro.Controls.ItemClickEventHandler(this.HamburgerMenuControl_OnItemClick);

#line default
#line hidden
                return;

            case 3:
                this.Home = ((MahApps.Metro.Controls.HamburgerMenuGlyphItem)(target));
                return;

            case 4:
                this.taskBarItemInfo = ((System.Windows.Shell.TaskbarItemInfo)(target));
                return;
            }
            this._contentLoaded = true;
        }
コード例 #5
0
        public Main()
        {
            InitializeComponent();

            _iconWindow = ResourceHelper.GetIcon("gmail-classic.ico");

            // since we're using the native jumplist stuff, we really shouldn't need this. we'll see.
            //_taskbarManager.ApplicationId = String.Concat("Gmail-Notifier-Plus-", Shellscape.Utilities.AssemblyMeta.Guid, "-", Shellscape.Utilities.AssemblyMeta.Version);

            _jumpList = new JumpList(); //JumpList.GetJumpList(System.Windows.Application.Current);
            _jumpList.ShowFrequentCategory = false;
            _jumpList.ShowRecentCategory = false;

            var app = new System.Windows.Application();

            JumpList.SetJumpList(app, _jumpList);
            TaskbarItemInfo info = new TaskbarItemInfo();

            info.ProgressState = TaskbarItemProgressState.Indeterminate;
            info.ProgressValue = 20;

            this.Icon = _iconWindow;
            this.Location = new Point(-10000, -10000);
            this.Text = this._TrayIcon.Text = GmailNotifierPlus.Resources.WindowTitle;

            this.CreateInstances();

            _config.Saved += _Config_Saved;
            _config.Accounts.AccountChanged += _Account_Changed;

            _Timer.Tick += _Timer_Tick;
            _Timer.Interval = Math.Max(1, _config.Interval) * 1000;
            _Timer.Enabled = true;
        }
コード例 #6
0
ファイル: ProgressManager.cs プロジェクト: ruarai/CompilePal
        public static void Init(TaskbarItemInfo _taskbarInfo)
        {
            taskbarInfo = _taskbarInfo;
            ready = true;

            TitleChange(string.Format("{0} {1}X {2}", defaultTitle, UpdateManager.CurrentVersion, GameConfigurationManager.GameConfiguration.Name));
        }
コード例 #7
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.TaskbarInfo = ((System.Windows.Shell.TaskbarItemInfo)(target));
                return;

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

            #line 30 "..\..\MainWindow.xaml"
                this.Update_Btn.Click += new System.Windows.RoutedEventHandler(this.UpdateIEsAsync);

            #line default
            #line hidden
                return;

            case 3:
                this.ShowInfo_Dg = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 4:
                this.Bar = ((System.Windows.Controls.ProgressBar)(target));
                return;
            }
            this._contentLoaded = true;
        }
コード例 #8
0
        public ClipboardThumbnailItem(BitmapSource icon, BitmapSource preview, string title, ClipboardSnapshot snapshot)
        {
            ShowActivated = false;
            Focusable = false;
            Icon = icon;
            WindowStyle = WindowStyle.None;
            ResizeMode = ResizeMode.NoResize;
            Title = title;
            Width = 0;
            Height = 0;
            Owner = GlobalMessageListener.Instance;
            Top = -short.MaxValue;
            Left = -short.MaxValue;

            var bitmap = new BitmapImage();
            bitmap.BeginInit();
            bitmap.UriSource = new Uri("pack://application:,,,/Shapeshifter;component/Images/Overlay.png");
            bitmap.EndInit();

            TaskbarItemInfo = new TaskbarItemInfo()
            {
                Overlay = bitmap
            };

            _snapshot = snapshot;

            _preview = BitmapFromBitmapSource(preview);

            _taskbarList = (ITaskbarList4)new TaskbarList();
            _taskbarList.HrInit();
        }
コード例 #9
0
		public MainWindow() {
			InitializeComponent();
			progressListener = progressProcesser;
			speedTest.onProgress += progressListener;
			successListener = successProcesser;
			speedTest.onSuccess += successListener;
			TaskbarItemInfo=new TaskbarItemInfo();
		}
コード例 #10
0
        public SparkleSetupWindow ()
        {
            Title      = "SparkleShare Setup";
            Width      = 640;
            Height     = 440;
            ResizeMode = ResizeMode.NoResize;
            Background = new SolidColorBrush (Colors.WhiteSmoke);
            Icon       = SparkleUIHelpers.GetImageSource ("sparkleshare-app", "ico");
			
			TaskbarItemInfo = new TaskbarItemInfo () {
				Description = "SparkleShare"
			};
            
            WindowStartupLocation = WindowStartupLocation.CenterScreen;
            Content               = ContentCanvas;

            // Remove the close button
            Closing += Close;
            SourceInitialized += delegate {
                const int gwl_style = -16;
                const int ws_sysmenu = 0x00080000; 
                WindowInteropHelper helper = new WindowInteropHelper (this);
                int style = GetWindowLong (helper.Handle, gwl_style);
                SetWindowLong (helper.Handle, gwl_style, style & ~ws_sysmenu);
            };
            
            this.bar = new Rectangle () {
                Width  = Width,
                Height = 40,
                Fill   = new SolidColorBrush (Color.FromRgb (240, 240, 240))    
            };
            
            this.line = new Rectangle () {
                Width  = Width,
                Height = 1,
                Fill   = new SolidColorBrush (Color.FromRgb (223, 223, 223))    
            };

            this.side_splash = new Image () {
                Width  = 150,
                Height = 482
            };

            this.side_splash.Source = SparkleUIHelpers.GetImageSource ("side-splash");
            
            
            ContentCanvas.Children.Add (this.bar);
            Canvas.SetRight (bar, 0);
            Canvas.SetBottom (bar, 0);
            
            ContentCanvas.Children.Add (this.line);
            Canvas.SetRight (this.line, 0);
            Canvas.SetBottom (this.line, 40);
            
            ContentCanvas.Children.Add (this.side_splash);
            Canvas.SetLeft (this.side_splash, 0);
            Canvas.SetBottom (this.side_splash, 0);
        }
コード例 #11
0
ファイル: MainWindow.xaml.cs プロジェクト: chandraw/nighthawk
        public MainWindow()
        {
            InitializeComponent();

            TaskbarItemInfo = new TaskbarItemInfo();
            TaskbarItemInfo.ProgressState = new TaskbarItemProgressState();

            RenderOptions.ProcessRenderMode = System.Windows.Interop.RenderMode.SoftwareOnly;
        }
コード例 #12
0
 private void ProgressForm_Shown(object sender, EventArgs e)
 {
     TaskbarItemInfo taskbarItemInfo = new TaskbarItemInfo();
     taskbarItemInfo.Description = "test";
     Application.Current.MainWindow.TaskbarItemInfo = taskbarItemInfo;
     taskbarItemInfo.ProgressState = TaskbarItemProgressState.Indeterminate;
     timer1.Start();
     backgroundWorker1.RunWorkerAsync();
 }
コード例 #13
0
ファイル: MainWindow.g.i.cs プロジェクト: Lierrmm/HuskyXbox
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.TaskBarProgress = ((System.Windows.Shell.TaskbarItemInfo)(target));
                return;

            case 2:

            #line 31 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ExportClick);

            #line default
            #line hidden
                return;

            case 3:
                this.polygon2 = ((System.Windows.Shapes.Polygon)(target));
                return;

            case 4:
                this.polygon4 = ((System.Windows.Shapes.Polygon)(target));
                return;

            case 5:
                this.polygon6 = ((System.Windows.Shapes.Polygon)(target));
                return;

            case 6:
                this.g16 = ((System.Windows.Controls.Canvas)(target));
                return;

            case 7:

            #line 158 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.AboutClick);

            #line default
            #line hidden
                return;

            case 8:
                this.line4 = ((System.Windows.Shapes.Line)(target));
                return;

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

            case 10:
                this.DimBox = ((System.Windows.Shapes.Rectangle)(target));
                return;
            }
            this._contentLoaded = true;
        }
コード例 #14
0
        public MainWindow()
        {
            InitializeComponent();

            Current = this;
            Tracks  = new ObservableCollection <Track>();

            TaskbarItemInfo         = new System.Windows.Shell.TaskbarItemInfo();
            Utility.ProgressUpdate += OnUpdateProgress;
        }
コード例 #15
0
 public MainWindow()
 {
     _style = new ApplicationStyle(this);
     _basics = new ApplicationBasics();
     InitializeComponent();
     _bw = new BackgroundWorker();
     TaskbarItemInfo = new TaskbarItemInfo();
     _style.Load();
     ValidateForm();
     _checkFileDates = new CheckFileDates();
 }
コード例 #16
0
        public BuildEventsHandler(DevUtilsPackage pkg)
        {
            _vspkg = pkg;
            _buildEvents = pkg.dte.Events.BuildEvents;
            _buildEvents.OnBuildBegin += buildStarted;
            _buildEvents.OnBuildDone  += buildDone;
            _buildEvents.OnBuildProjConfigDone  += buildProjDone;

            _taskbarItemInfo = Application.Current.MainWindow.TaskbarItemInfo;
            if (_taskbarItemInfo == null)
                Application.Current.MainWindow.TaskbarItemInfo = _taskbarItemInfo = new TaskbarItemInfo();
        }
コード例 #17
0
        public MainWindow()
		{
			this.InitializeComponent();
			// Insert code required on object creation below this point.
            GridPlaylist.ItemsSource = m_playlist.List;
            // For seekSlider
            timer = new DispatcherTimer();
            timer.Interval = TimeSpan.FromMilliseconds(1);
            timer.Tick += new EventHandler(timer_Tick);
            tick = new timerTick(changeStatus);
            // For TaskBar
            TaskbarItemInfo taskbarItemInfo = new TaskbarItemInfo();
            this.TaskbarItemInfo = taskbarItemInfo;
		}
コード例 #18
0
ファイル: SparkleSetupWindow.cs プロジェクト: vfh/CmisSync
        public SparkleSetupWindow()
        {
            Title      = "CmisSync Setup";
            Width      = 640;
            Height     = 440;
            ResizeMode = ResizeMode.NoResize;
            Background = new SolidColorBrush (Colors.WhiteSmoke);
            Icon       = SparkleUIHelpers.GetImageSource("sparkleshare-app", "ico");

            TaskbarItemInfo = new TaskbarItemInfo () {
                Description = "CmisSync"
            };

            WindowStartupLocation = WindowStartupLocation.CenterScreen;
            Content               = ContentCanvas;

            Closing += Close;

            this.bar = new Rectangle () {
                Width  = Width,
                Height = 40,
                Fill   = new SolidColorBrush (Color.FromRgb (240, 240, 240))
            };

            this.line = new Rectangle () {
                Width  = Width,
                Height = 1,
                Fill   = new SolidColorBrush (Color.FromRgb (223, 223, 223))
            };

            this.side_splash = new Image () {
                Width  = 150,
                Height = 482
            };

            this.side_splash.Source = SparkleUIHelpers.GetImageSource ("side-splash");

            ContentCanvas.Children.Add (this.bar);
            Canvas.SetRight (bar, 0);
            Canvas.SetBottom (bar, 0);

            ContentCanvas.Children.Add (this.line);
            Canvas.SetRight (this.line, 0);
            Canvas.SetBottom (this.line, 40);

            ContentCanvas.Children.Add (this.side_splash);
            Canvas.SetLeft (this.side_splash, 0);
            Canvas.SetBottom (this.side_splash, 0);
        }
コード例 #19
0
ファイル: MainWindow.g.i.cs プロジェクト: Cou01000111/wpf13
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.taskbarInfo = ((System.Windows.Shell.TaskbarItemInfo)(target));
                return;

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

            #line 19 "..\..\MainWindow.xaml"
                this.openMenu.Click += new System.Windows.RoutedEventHandler(this.openMenu_Click);

            #line default
            #line hidden
                return;

            case 3:
                this.exitMenu = ((System.Windows.Controls.MenuItem)(target));

            #line 20 "..\..\MainWindow.xaml"
                this.exitMenu.Click += new System.Windows.RoutedEventHandler(this.exitMenu_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.clearMenu = ((System.Windows.Controls.MenuItem)(target));

            #line 23 "..\..\MainWindow.xaml"
                this.clearMenu.Click += new System.Windows.RoutedEventHandler(this.clearMenu_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.listView = ((System.Windows.Controls.ListView)(target));
                return;

            case 6:
                this.loadingText = ((System.Windows.Controls.TextBlock)(target));
                return;
            }
            this._contentLoaded = true;
        }
コード例 #20
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 7 "..\..\..\ThumbnailButtons.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.cmdPlay_Click);

            #line default
            #line hidden
                return;

            case 2:

            #line 10 "..\..\..\ThumbnailButtons.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.cmdPause_Click);

            #line default
            #line hidden
                return;

            case 3:
                this.taskBarItem = ((System.Windows.Shell.TaskbarItemInfo)(target));
                return;

            case 4:

            #line 20 "..\..\..\ThumbnailButtons.xaml"
                ((System.Windows.Shell.ThumbButtonInfo)(target)).Click += new System.EventHandler(this.cmdPlay_Click);

            #line default
            #line hidden
                return;

            case 5:

            #line 22 "..\..\..\ThumbnailButtons.xaml"
                ((System.Windows.Shell.ThumbButtonInfo)(target)).Click += new System.EventHandler(this.cmdPause_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
コード例 #21
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.LayoutRoot = ((System.Windows.Controls.Grid)(target));
                return;

            case 2:

            #line 7 "..\..\..\ThumbnailClipping.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.cmdShrinkPreview_Click);

            #line default
            #line hidden
                return;

            case 3:

            #line 8 "..\..\..\ThumbnailClipping.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.cmdShrinkPreview_Click);

            #line default
            #line hidden
                return;

            case 4:

            #line 9 "..\..\..\ThumbnailClipping.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.cmdShrinkPreview_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.taskBarItem = ((System.Windows.Shell.TaskbarItemInfo)(target));
                return;
            }
            this._contentLoaded = true;
        }
コード例 #22
0
 public MainWindow(App application)
 {
     app=application;
     Width=app.Settings.Width;
     Height=app.Settings.Height;
     Title=Properties.Resources.AppName;
     Icon=ImageConverter.IconToBitmapFrame(CW.Properties.Resources.CW);
     StateChanged+=MainWindowStateChanged;
     SourceInitialized+=MainWindowSourceInitialized;
     SizeChanged+=MainWindowSizeChanged;
     Closing+=MainWindowClosing;
     Closed+=MainWindowClosed;
     TaskbarItemInfo=new TaskbarItemInfo()
     {
     Description=Properties.Resources.AppName,
     ThumbButtonInfos=new ThumbButtonInfoCollection()
     };
     ThumbButtonClear=new ThumbButtonInfo()
     {
     Description=app.Language.ClearDescription,
     ImageSource=ImageConverter.IconToBitmapFrame(CW.Properties.Resources.Clear)
     };
     ThumbButtonClear.Click+=ThumbButtonClearClick;
     TaskbarItemInfo.ThumbButtonInfos.Add(ThumbButtonClear);
     CommandBindings.Add
     (
     new CommandBinding
     (
     ApplicationCommands.Close,
     CloseCmdExecuted,
     CmdAlwaysCanExecute
     )
     );
     Grid1=new Grid();
     CreateTopPanel();
     CreateFlowDocReader();
     CreateBottomPanel();
     Content=Grid1;
     InitializeNotify();
     IsAutorun=false;
 }
コード例 #23
0
ファイル: AppModel.cs プロジェクト: kveretennicov/kato
		public AppModel(TaskbarIcon notifyIcon, TaskbarItemInfo taskbarItemInfo)
		{
			m_isAddServerUrlValid = true;
			m_updateManager = new AutoUpdater();
			m_notifyIcon = notifyIcon;
			Enum.TryParse(Settings.Default.ViewMode, true, out m_viewMode);
			m_taskbarItemInfo = taskbarItemInfo;
			m_servers = new ObservableCollection<ServerViewModel>();
			m_settings = PersistedUserSettings.Open<UserSettings>() ?? new UserSettings { Servers = new List<SavedJenkinsServers>() };
			m_timer = new DispatcherTimer(TimeSpan.FromSeconds(c_projectUpdateInterval), DispatcherPriority.Background, (sender, args) => Update(), Dispatcher.CurrentDispatcher);
			Status = new StatusViewModel();
			m_subscribedJobs = new ObservableCollection<JobViewModel>();

			if (ApplicationDeployment.IsNetworkDeployed)
			{
				m_updateManager.CheckForUpdate();
				m_updateManager.PropertyChanged += UpdateManager_PropertyChanged;
				m_updateTimer = new DispatcherTimer(TimeSpan.FromHours(4), DispatcherPriority.Background, CheckForUpdate, Dispatcher.CurrentDispatcher);
			}

			Initialize();
		}
コード例 #24
0
ファイル: Main.cs プロジェクト: alecor/Gmail-Notifier-Plus
        public Main()
        {
            InitializeComponent();

            _jumpList = new JumpList();
            _jumpList.ShowFrequentCategory = false;
            _jumpList.ShowRecentCategory = false;

            var app = new System.Windows.Application();

            JumpList.SetJumpList(app, _jumpList);
            TaskbarItemInfo info = new TaskbarItemInfo();

            info.ProgressState = TaskbarItemProgressState.Indeterminate;
            info.ProgressValue = 20;

            this.Icon = Resources.Icons.Window;
            this.StartPosition = FormStartPosition.Manual;
            this.Location = new Point(-10000, -10000);
            this.Text = this._TrayIcon.Text = GmailNotifierPlus.Resources.Strings.WindowTitle;

            this.CreateInstances();

            _config.Saved += _Config_Saved;

            _config.LanguageChanged += delegate(Config sender) {
                InitJumpList();
            };

            _config.Accounts.AccountChanged += _Account_Changed;

            _Timer.Tick += _Timer_Tick;
            _Timer.Interval = Math.Max(1, _config.Interval) * 1000;
            _Timer.Enabled = true;

            Shellscape.UpdateManager.Current.UpdateAvailable += _Updates_UpdatesAvailable;
            Shellscape.UpdateManager.Current.Start();
        }
コード例 #25
0
        public MainWindow()
        {
            InitializeComponent();

            TaskbarItemInfo = new TaskbarItemInfo();

            TaskbarItemInfo.ProgressValue = 0.5;

            Content = new StackPanel()
                .AddChildren(
                    new Button() { Content = "Normal" }
                        .AddClick((s, e) => TaskbarItemInfo.ProgressState = TaskbarItemProgressState.Normal),
                    new Button() { Content = "Paused" }
                        .AddClick((s, e) => TaskbarItemInfo.ProgressState = TaskbarItemProgressState.Paused),
                    new Button() { Content = "Error" }
                        .AddClick((s, e) => TaskbarItemInfo.ProgressState = TaskbarItemProgressState.Error),
                    new Button() { Content = "Indeterminate" }
                        .AddClick((s, e) => TaskbarItemInfo.ProgressState = TaskbarItemProgressState.Indeterminate),
                    new Button() { Content = "None" }
                        .AddClick((s, e) => TaskbarItemInfo.ProgressState = TaskbarItemProgressState.None),
                    new Button() { Content = "Increase" } .AddClick((s, e) => TaskbarItemInfo.ProgressValue += 0.10),
                    new Button() { Content = "Decrease" } .AddClick((s, e) => TaskbarItemInfo.ProgressValue -= 0.10));
        }
コード例 #26
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 5 "..\..\MainWindow.xaml"
                ((Mp3Player.MainWindow)(target)).KeyDown += new System.Windows.Input.KeyEventHandler(this.Window_KeyDown);

            #line default
            #line hidden

            #line 5 "..\..\MainWindow.xaml"
                ((Mp3Player.MainWindow)(target)).KeyUp += new System.Windows.Input.KeyEventHandler(this.Window_KeyUp);

            #line default
            #line hidden
                return;

            case 2:

            #line 274 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Grid)(target)).MouseRightButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.MasterGrid_MouseRightButtonDown);

            #line default
            #line hidden

            #line 274 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Grid)(target)).MouseWheel += new System.Windows.Input.MouseWheelEventHandler(this.MasterGrid_MouseWheel);

            #line default
            #line hidden
                return;

            case 3:
                this.albumArt = ((System.Windows.Controls.Image)(target));
                return;

            case 4:
                this.AlbumArtTT = ((System.Windows.Media.TranslateTransform)(target));
                return;

            case 5:
                this.MainGrid = ((System.Windows.Controls.Grid)(target));

            #line 288 "..\..\MainWindow.xaml"
                this.MainGrid.Drop += new System.Windows.DragEventHandler(this.Window_Drop);

            #line default
            #line hidden
                return;

            case 6:

            #line 291 "..\..\MainWindow.xaml"
                ((System.Windows.Shapes.Rectangle)(target)).Drop += new System.Windows.DragEventHandler(this.Window_Drop);

            #line default
            #line hidden

            #line 291 "..\..\MainWindow.xaml"
                ((System.Windows.Shapes.Rectangle)(target)).MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.albumArt_MouseDown);

            #line default
            #line hidden
                return;

            case 7:

            #line 294 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.PlayerCommandButton_Click);

            #line default
            #line hidden
                return;

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

            #line 295 "..\..\MainWindow.xaml"
                this.PlayPauseBtn.Click += new System.Windows.RoutedEventHandler(this.PlayerCommandButton_Click);

            #line default
            #line hidden
                return;

            case 9:

            #line 296 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.PlayerCommandButton_Click);

            #line default
            #line hidden
                return;

            case 10:
                this.VolumeSlider = ((System.Windows.Controls.Slider)(target));

            #line 300 "..\..\MainWindow.xaml"
                this.VolumeSlider.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.VolumeSlider_ValueChanged);

            #line default
            #line hidden
                return;

            case 11:
                this.SeekSlider = ((System.Windows.Controls.Slider)(target));

            #line 301 "..\..\MainWindow.xaml"
                this.SeekSlider.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.SeekSlider_ValueChanged);

            #line default
            #line hidden
                return;

            case 12:
                this.contextGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 13:

            #line 307 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.CloseMinimizeBtn_click);

            #line default
            #line hidden
                return;

            case 14:

            #line 308 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.CloseMinimizeBtn_click);

            #line default
            #line hidden
                return;

            case 15:
                this.ContextGridTT = ((System.Windows.Media.TranslateTransform)(target));
                return;

            case 16:

            #line 316 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.SliderButton_Click);

            #line default
            #line hidden
                return;

            case 17:

            #line 322 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.SliderButton_Click);

            #line default
            #line hidden
                return;

            case 18:

            #line 325 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Drop += new System.Windows.DragEventHandler(this.AddButton_Drop);

            #line default
            #line hidden

            #line 325 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click);

            #line default
            #line hidden
                return;

            case 19:

            #line 326 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click);

            #line default
            #line hidden
                return;

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

            #line 330 "..\..\MainWindow.xaml"
                this.repeatOnceRb.Checked += new System.Windows.RoutedEventHandler(this.RepeatModeRadioButton_Checked);

            #line default
            #line hidden
                return;

            case 21:
                this.repeatAllRb = ((System.Windows.Controls.RadioButton)(target));

            #line 331 "..\..\MainWindow.xaml"
                this.repeatAllRb.Checked += new System.Windows.RoutedEventHandler(this.RepeatModeRadioButton_Checked);

            #line default
            #line hidden
                return;

            case 22:
                this.shuffleRb = ((System.Windows.Controls.RadioButton)(target));

            #line 332 "..\..\MainWindow.xaml"
                this.shuffleRb.Checked += new System.Windows.RoutedEventHandler(this.RepeatModeRadioButton_Checked);

            #line default
            #line hidden
                return;

            case 23:
                this.SecondGridTT = ((System.Windows.Media.TranslateTransform)(target));
                return;

            case 24:
                this.HiddenSlider = ((System.Windows.Controls.Slider)(target));

            #line 342 "..\..\MainWindow.xaml"
                this.HiddenSlider.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.HiddenSlider_ValueChanged);

            #line default
            #line hidden
                return;

            case 25:
                this.MasterGridTT = ((System.Windows.Media.TranslateTransform)(target));
                return;

            case 26:
                this.TaskBarInfo = ((System.Windows.Shell.TaskbarItemInfo)(target));
                return;

            case 27:

            #line 354 "..\..\MainWindow.xaml"
                ((System.Windows.Shell.ThumbButtonInfo)(target)).Click += new System.EventHandler(this.ThumbButtonInfo_Click);

            #line default
            #line hidden
                return;

            case 28:

            #line 355 "..\..\MainWindow.xaml"
                ((System.Windows.Shell.ThumbButtonInfo)(target)).Click += new System.EventHandler(this.ThumbButtonInfo_Click);

            #line default
            #line hidden
                return;

            case 29:

            #line 356 "..\..\MainWindow.xaml"
                ((System.Windows.Shell.ThumbButtonInfo)(target)).Click += new System.EventHandler(this.ThumbButtonInfo_Click);

            #line default
            #line hidden
                return;

            case 30:

            #line 357 "..\..\MainWindow.xaml"
                ((System.Windows.Shell.ThumbButtonInfo)(target)).Click += new System.EventHandler(this.ThumbButtonInfo_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
コード例 #27
0
 void OnWindowItemInfoChanged(DependencyPropertyChangedEventArgs e) {
     if(ActualWindow == null) return;
     TaskbarItemInfo itemInfo = (TaskbarItemInfo)e.NewValue;
     if(itemInfo == null) {
         itemInfo = new TaskbarItemInfo();
         ActualWindow.TaskbarItemInfo = itemInfo;
     }
     ItemInfo = itemInfo;
 }
コード例 #28
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.menu = ((System.Windows.Controls.Menu)(target));
                return;

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

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

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

            case 5:
                this.rowsCountStackPanel = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 6:
                this.rowsCountTextBox = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 7:

            #line 169 "..\..\..\Views\MainWindow.xaml"
                ((System.Windows.Controls.Viewbox)(target)).PreviewMouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.operDbUse_PreviewMouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 8:
                this.IidkViewBox = ((System.Windows.Controls.Viewbox)(target));
                return;

            case 9:
                this.iidkDisconnected = ((System.Windows.Controls.Primitives.Popup)(target));
                return;

            case 10:
                this.myLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 11:

            #line 255 "..\..\..\Views\MainWindow.xaml"
                ((System.Windows.Controls.TabControl)(target)).SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.tabControl_OnSelectionChanged);

            #line default
            #line hidden
                return;

            case 12:
                this.AccessEvents = ((System.Windows.Controls.TabItem)(target));
                return;

            case 13:
                this.PersonsAEF = ((MolserControls.MsComboBox)(target));
                return;

            case 14:
                this.DepartmentsAEF = ((MolserControls.MsTextBox)(target));

            #line 363 "..\..\..\Views\MainWindow.xaml"
                this.DepartmentsAEF.PreviewMouseDown += new System.Windows.Input.MouseButtonEventHandler(this.SelectAllTextBox_PreviewMouseDown);

            #line default
            #line hidden
                return;

            case 15:
                this.StartDateAEF = ((Xceed.Wpf.Toolkit.DateTimePicker)(target));
                return;

            case 16:
                this.EndDateAEQP = ((Xceed.Wpf.Toolkit.DateTimePicker)(target));
                return;

            case 17:

            #line 500 "..\..\..\Views\MainWindow.xaml"
                ((System.Windows.Controls.Primitives.ToggleButton)(target)).Checked += new System.Windows.RoutedEventHandler(this.AeEventsButton_Checked);

            #line default
            #line hidden
                return;

            case 18:

            #line 531 "..\..\..\Views\MainWindow.xaml"
                ((System.Windows.Controls.Primitives.ToggleButton)(target)).Checked += new System.Windows.RoutedEventHandler(this.AeAccessPointsButton_Checked);

            #line default
            #line hidden
                return;

            case 19:
                this.PersonIDTextBox = ((MolserControls.MsTextBox)(target));
                return;

            case 20:
                this.FacilityCodTextBox = ((MolserControls.MsTextBox)(target));
                return;

            case 21:
                this.CardPartParsecTextBox = ((MolserControls.MsTextBox)(target));
                return;

            case 22:
                this.accessEvenetsDataGrid = ((System.Windows.Controls.DataGrid)(target));

            #line 668 "..\..\..\Views\MainWindow.xaml"
                this.accessEvenetsDataGrid.LoadingRow += new System.EventHandler <System.Windows.Controls.DataGridRowEventArgs>(this.dataGrid_LoadingRow);

            #line default
            #line hidden

            #line 674 "..\..\..\Views\MainWindow.xaml"
                this.accessEvenetsDataGrid.TargetUpdated += new System.EventHandler <System.Windows.Data.DataTransferEventArgs>(this.DataGrid_TargetUpdated);

            #line default
            #line hidden
                return;

            case 23:
                this.Persons = ((System.Windows.Controls.TabItem)(target));
                return;

            case 24:
                this.PersonPF = ((MolserControls.MsTextBox)(target));

            #line 929 "..\..\..\Views\MainWindow.xaml"
                this.PersonPF.PreviewMouseDown += new System.Windows.Input.MouseButtonEventHandler(this.SelectAllTextBox_PreviewMouseDown);

            #line default
            #line hidden
                return;

            case 25:
                this.DepartmentsPF = ((MolserControls.MsTextBox)(target));

            #line 972 "..\..\..\Views\MainWindow.xaml"
                this.DepartmentsPF.PreviewMouseDown += new System.Windows.Input.MouseButtonEventHandler(this.SelectAllTextBox_PreviewMouseDown);

            #line default
            #line hidden
                return;

            case 26:
                this.PersonsPersonIDTextBox = ((MolserControls.MsTextBox)(target));
                return;

            case 27:
                this.PersonsFacilityCodTextBox = ((MolserControls.MsTextBox)(target));
                return;

            case 28:
                this.PersonsCardPartParsecTextBox = ((MolserControls.MsTextBox)(target));
                return;

            case 29:
                this.cbDepartmentFilter = ((MolserControls.MsComboBox)(target));

            #line 1117 "..\..\..\Views\MainWindow.xaml"
                this.cbDepartmentFilter.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cbDepartmentFilter_SelectionChanged);

            #line default
            #line hidden

            #line 1118 "..\..\..\Views\MainWindow.xaml"
                this.cbDepartmentFilter.TargetUpdated += new System.EventHandler <System.Windows.Data.DataTransferEventArgs>(this.cbDepartmentFilter_TargetUpdated);

            #line default
            #line hidden
                return;

            case 30:
                this.personsDataGrid = ((System.Windows.Controls.DataGrid)(target));

            #line 1133 "..\..\..\Views\MainWindow.xaml"
                this.personsDataGrid.LoadingRow += new System.EventHandler <System.Windows.Controls.DataGridRowEventArgs>(this.personsDataGrid_LoadingRow);

            #line default
            #line hidden

            #line 1138 "..\..\..\Views\MainWindow.xaml"
                this.personsDataGrid.TargetUpdated += new System.EventHandler <System.Windows.Data.DataTransferEventArgs>(this.DataGrid_TargetUpdated);

            #line default
            #line hidden
                return;

            case 31:
                this.AccessPoints = ((System.Windows.Controls.TabItem)(target));
                return;

            case 32:
                this.AccessPointName = ((MolserControls.MsTextBox)(target));

            #line 1311 "..\..\..\Views\MainWindow.xaml"
                this.AccessPointName.PreviewMouseDown += new System.Windows.Input.MouseButtonEventHandler(this.SelectAllTextBox_PreviewMouseDown);

            #line default
            #line hidden
                return;

            case 33:
                this.accessPointsDataGrid = ((System.Windows.Controls.DataGrid)(target));

            #line 1405 "..\..\..\Views\MainWindow.xaml"
                this.accessPointsDataGrid.LoadingRow += new System.EventHandler <System.Windows.Controls.DataGridRowEventArgs>(this.dataGrid_LoadingRow);

            #line default
            #line hidden

            #line 1413 "..\..\..\Views\MainWindow.xaml"
                this.accessPointsDataGrid.TargetUpdated += new System.EventHandler <System.Windows.Data.DataTransferEventArgs>(this.accessPointsDataGrid_TargetUpdated);

            #line default
            #line hidden
                return;

            case 34:
                this.Levels = ((System.Windows.Controls.TabItem)(target));
                return;

            case 35:
                this.LevelName = ((MolserControls.MsTextBox)(target));

            #line 1532 "..\..\..\Views\MainWindow.xaml"
                this.LevelName.PreviewMouseDown += new System.Windows.Input.MouseButtonEventHandler(this.SelectAllTextBox_PreviewMouseDown);

            #line default
            #line hidden
                return;

            case 36:
                this.levelsDataGrid = ((System.Windows.Controls.DataGrid)(target));

            #line 1632 "..\..\..\Views\MainWindow.xaml"
                this.levelsDataGrid.LoadingRow += new System.EventHandler <System.Windows.Controls.DataGridRowEventArgs>(this.levelsDataGrid_LoadingRow);

            #line default
            #line hidden

            #line 1640 "..\..\..\Views\MainWindow.xaml"
                this.levelsDataGrid.TargetUpdated += new System.EventHandler <System.Windows.Data.DataTransferEventArgs>(this.levelsDataGrid_TargetUpdated);

            #line default
            #line hidden
                return;

            case 37:
                this.Notifications = ((System.Windows.Controls.TabItem)(target));
                return;

            case 38:
                this.alarmIndicator = ((System.Windows.Shapes.Ellipse)(target));
                return;

            case 39:
                this.alarmIndicator2 = ((System.Windows.Controls.Viewbox)(target));
                return;

            case 40:
                this.alarmIndicator3 = ((System.Windows.Controls.Viewbox)(target));
                return;

            case 41:
                this.notificationsDataGrid = ((System.Windows.Controls.DataGrid)(target));

            #line 1879 "..\..\..\Views\MainWindow.xaml"
                this.notificationsDataGrid.LoadingRow += new System.EventHandler <System.Windows.Controls.DataGridRowEventArgs>(this.dataGrid_LoadingRow);

            #line default
            #line hidden

            #line 1887 "..\..\..\Views\MainWindow.xaml"
                this.notificationsDataGrid.TargetUpdated += new System.EventHandler <System.Windows.Data.DataTransferEventArgs>(this.notificationsDataGrid_TargetUpdated);

            #line default
            #line hidden
                return;

            case 43:
                this.taskBarItemInfo = ((System.Windows.Shell.TaskbarItemInfo)(target));
                return;
            }
            this._contentLoaded = true;
        }
コード例 #29
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.taskbar = ((System.Windows.Shell.TaskbarItemInfo)(target));
                return;

            case 2:

            #line 18 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.WrapPanel)(target)).MouseMove += new System.Windows.Input.MouseEventHandler(this.TitleBar_MouseMove);

            #line default
            #line hidden
                return;

            case 3:
                this.txtTitle = ((System.Windows.Controls.TextBlock)(target));
                return;

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

            #line 33 "..\..\MainWindow.xaml"
                this.closebutton.Click += new System.Windows.RoutedEventHandler(this.btn_close_Click);

            #line default
            #line hidden
                return;

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

            #line 51 "..\..\MainWindow.xaml"
                this.minbutton.Click += new System.Windows.RoutedEventHandler(this.btn_min_Click);

            #line default
            #line hidden
                return;

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

            #line 69 "..\..\MainWindow.xaml"
                this.settingbutton.Click += new System.Windows.RoutedEventHandler(this.settingbutton_Click);

            #line default
            #line hidden
                return;

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

            #line 87 "..\..\MainWindow.xaml"
                this.aboutbutton.Click += new System.Windows.RoutedEventHandler(this.aboutbutton_Click);

            #line default
            #line hidden
                return;

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

            #line 105 "..\..\MainWindow.xaml"
                this.openbutton.Click += new System.Windows.RoutedEventHandler(this.openbutton_Click);

            #line default
            #line hidden
                return;

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

            #line 123 "..\..\MainWindow.xaml"
                this.refreshbutton.Click += new System.Windows.RoutedEventHandler(this.refreshbutton_Click);

            #line default
            #line hidden
                return;

            case 10:
                this.web = ((System.Windows.Controls.WebBrowser)(target));
                return;

            case 11:
                this.web_test = ((System.Windows.Controls.WebBrowser)(target));
                return;
            }
            this._contentLoaded = true;
        }
コード例 #30
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.AppMainWindow = ((MediaPlayerWPFProject.MainWindow)(target));
                return;

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

            #line 17 "..\..\MainWindow.xaml"
                this._MainMediaPlayer.MediaOpened += new System.Windows.RoutedEventHandler(this._MainMediaPlayer_MediaOpened);

            #line default
            #line hidden

            #line 17 "..\..\MainWindow.xaml"
                this._MainMediaPlayer.MediaEnded += new System.Windows.RoutedEventHandler(this._MainMediaPlayer_MediaEnded);

            #line default
            #line hidden
                return;

            case 3:
                this.MediaSlider = ((System.Windows.Controls.Slider)(target));

            #line 18 "..\..\MainWindow.xaml"
                this.MediaSlider.AddHandler(System.Windows.Controls.Primitives.Thumb.DragCompletedEvent, new System.Windows.Controls.Primitives.DragCompletedEventHandler(this.MediaSlider_DragCompleted));

            #line default
            #line hidden
                return;

            case 4:
                this.TBMediaControl = ((System.Windows.Controls.ToolBar)(target));

            #line 21 "..\..\MainWindow.xaml"
                this.TBMediaControl.AddHandler(System.Windows.Controls.Primitives.ButtonBase.ClickEvent, new System.Windows.RoutedEventHandler(this.MediaControl_Click));

            #line default
            #line hidden
                return;

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

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

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

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

            case 9:
                this.PlayPause = ((System.Windows.Controls.Image)(target));
                return;

            case 10:
                this.LblTime = ((System.Windows.Controls.Label)(target));
                return;

            case 11:
                this.LblAllTime = ((System.Windows.Controls.Label)(target));
                return;

            case 12:
                this.SoundBar = ((System.Windows.Controls.Slider)(target));

            #line 58 "..\..\MainWindow.xaml"
                this.SoundBar.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.SoundBar_ValueChanged);

            #line default
            #line hidden
                return;

            case 13:
                this.FullScreen = ((System.Windows.Controls.Button)(target));
                return;

            case 14:
                this.PlayList = ((System.Windows.Controls.Button)(target));
                return;

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

            case 16:
                this.PlayListToShow = ((System.Windows.Controls.DockPanel)(target));

            #line 94 "..\..\MainWindow.xaml"
                this.PlayListToShow.MouseEnter += new System.Windows.Input.MouseEventHandler(this.PlayListToShow_MouseEnter);

            #line default
            #line hidden

            #line 94 "..\..\MainWindow.xaml"
                this.PlayListToShow.MouseLeave += new System.Windows.Input.MouseEventHandler(this.PlayListToShow_MouseLeave);

            #line default
            #line hidden
                return;

            case 17:
                this.TVPList = ((System.Windows.Controls.TreeView)(target));
                return;

            case 18:
                this.PlayListRoot = ((System.Windows.Controls.TreeViewItem)(target));
                return;

            case 19:
                this.MI_AddSongs = ((System.Windows.Controls.MenuItem)(target));

            #line 100 "..\..\MainWindow.xaml"
                this.MI_AddSongs.Click += new System.Windows.RoutedEventHandler(this.MI_AddSongs_Click);

            #line default
            #line hidden
                return;

            case 20:
                this.TaskProgressInfo = ((System.Windows.Shell.TaskbarItemInfo)(target));
                return;

            case 21:
                this.BtnTask = ((System.Windows.Shell.ThumbButtonInfo)(target));
                return;
            }
            this._contentLoaded = true;
        }
コード例 #31
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

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

            #line default
            #line hidden
                return;

            case 2:
                this.taskbarPercentProgressBar = ((System.Windows.Shell.TaskbarItemInfo)(target));
                return;

            case 3:
                this.timeInput = ((System.Windows.Controls.TextBox)(target));

            #line 18 "..\..\MainWindow.xaml"
                this.timeInput.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.timeInput_TextChanged);

            #line default
            #line hidden
                return;

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

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

            #line 35 "..\..\MainWindow.xaml"
                this.AlertButton.Click += new System.Windows.RoutedEventHandler(this.AlertButton_Click);

            #line default
            #line hidden
                return;

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

            case 7:
                this.percentProgressBar = ((System.Windows.Controls.ProgressBar)(target));
                return;

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

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

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

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

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

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

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

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

            case 16:
                this.settingsSaveButton = ((System.Windows.Controls.Button)(target));

            #line 70 "..\..\MainWindow.xaml"
                this.settingsSaveButton.Click += new System.Windows.RoutedEventHandler(this.settingsSaveButton_Click);

            #line default
            #line hidden
                return;

            case 17:
                this.regexEntry = ((System.Windows.Controls.TextBox)(target));
                return;

            case 18:
                this.autoSetWhenTypeCheckbox = ((System.Windows.Controls.CheckBox)(target));

            #line 77 "..\..\MainWindow.xaml"
                this.autoSetWhenTypeCheckbox.Checked += new System.Windows.RoutedEventHandler(this.autoSetWhenTypeCheckbox_Checked);

            #line default
            #line hidden

            #line 77 "..\..\MainWindow.xaml"
                this.autoSetWhenTypeCheckbox.Unchecked += new System.Windows.RoutedEventHandler(this.autoSetWhenTypeCheckbox_Unchecked);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
コード例 #32
0
ファイル: Win7.cs プロジェクト: Jesper87/HandBrake
 /// <summary>
 /// Initializes a new instance of the <see cref="Win7"/> class.
 /// </summary>
 public Win7()
 {
     if (WindowsTaskbar == null)
         WindowsTaskbar = new TaskbarItemInfo();
 }
コード例 #33
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 10 "..\..\MainWindow.xaml"
                ((Autokeys2.MainWindow)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.Window_Closing);

            #line default
            #line hidden
                return;

            case 2:
                this.taskbarInfo = ((System.Windows.Shell.TaskbarItemInfo)(target));
                return;

            case 3:
                this.vewLeft = ((Autokeys2.Views.MacrosView)(target));
                return;

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

            #line 34 "..\..\MainWindow.xaml"
                this.btnExL.Click += new System.Windows.RoutedEventHandler(this.showHideLeft);

            #line default
            #line hidden
                return;

            case 5:
                this.brdAll = ((System.Windows.Controls.Border)(target));

            #line 39 "..\..\MainWindow.xaml"
                this.brdAll.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.onMouseDown);

            #line default
            #line hidden
                return;

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

            #line 47 "..\..\MainWindow.xaml"
                this.btnRecord.Click += new System.Windows.RoutedEventHandler(this.btnRecord_Click);

            #line default
            #line hidden
                return;

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

            #line 48 "..\..\MainWindow.xaml"
                this.btnPlay.Click += new System.Windows.RoutedEventHandler(this.btnPlay_Click);

            #line default
            #line hidden
                return;

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

            #line 65 "..\..\MainWindow.xaml"
                this.txtRepeats.KeyDown += new System.Windows.Input.KeyEventHandler(this.txtRepeats_KeyDown);

            #line default
            #line hidden
                return;

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

            #line 67 "..\..\MainWindow.xaml"
                this.txtSpeed.KeyDown += new System.Windows.Input.KeyEventHandler(this.txtSpeed_KeyDown);

            #line default
            #line hidden
                return;

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

            #line 75 "..\..\MainWindow.xaml"
                this.btnMin.Click += new System.Windows.RoutedEventHandler(this.btnMin_Click);

            #line default
            #line hidden
                return;

            case 11:
                this.btnClose = ((System.Windows.Controls.Button)(target));

            #line 76 "..\..\MainWindow.xaml"
                this.btnClose.Click += new System.Windows.RoutedEventHandler(this.btnClose_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
コード例 #34
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 10 "..\..\MainWindow.xaml"
                ((FramelessWPF.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);

            #line default
            #line hidden

            #line 10 "..\..\MainWindow.xaml"
                ((FramelessWPF.MainWindow)(target)).SizeChanged += new System.Windows.SizeChangedEventHandler(this.Window_SizeChanged);

            #line default
            #line hidden
                return;

            case 2:
                this.taskBarItemInfo1 = ((System.Windows.Shell.TaskbarItemInfo)(target));
                return;

            case 3:
                this.btnPreviewForTaskBar = ((System.Windows.Shell.ThumbButtonInfo)(target));

            #line 19 "..\..\MainWindow.xaml"
                this.btnPreviewForTaskBar.Click += new System.EventHandler(this.BtnPreviewForTaskBar_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.btnPlayForTaskBar = ((System.Windows.Shell.ThumbButtonInfo)(target));

            #line 23 "..\..\MainWindow.xaml"
                this.btnPlayForTaskBar.Click += new System.EventHandler(this.BtnPlayForTaskBar_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.btnNextForTaskBar = ((System.Windows.Shell.ThumbButtonInfo)(target));
                return;

            case 6:
                this.dig_ifCreatStream = ((MaterialDesignThemes.Wpf.DialogHost)(target));

            #line 55 "..\..\MainWindow.xaml"
                this.dig_ifCreatStream.DialogClosing += new MaterialDesignThemes.Wpf.DialogClosingEventHandler(this.DialogHost_DialogClosing);

            #line default
            #line hidden
                return;

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

            case 8:
                this.MenuItem_OpenFile = ((System.Windows.Controls.MenuItem)(target));

            #line 86 "..\..\MainWindow.xaml"
                this.MenuItem_OpenFile.Click += new System.Windows.RoutedEventHandler(this.MenuItem_OpenFile_Click);

            #line default
            #line hidden
                return;

            case 9:
                this.MenuItem_OpenCD = ((System.Windows.Controls.MenuItem)(target));

            #line 87 "..\..\MainWindow.xaml"
                this.MenuItem_OpenCD.Click += new System.Windows.RoutedEventHandler(this.MenuItem_OpenCD_Click);

            #line default
            #line hidden
                return;

            case 10:
                this.MenuItem_AddFile = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 11:
                this.MenuItem_AddCD = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 12:
                this.MenuItem_Exit = ((System.Windows.Controls.MenuItem)(target));

            #line 90 "..\..\MainWindow.xaml"
                this.MenuItem_Exit.Click += new System.Windows.RoutedEventHandler(this.MenuItem_Exit_Click);

            #line default
            #line hidden
                return;

            case 13:
                this.MenuItem_Play_Pause = ((System.Windows.Controls.MenuItem)(target));

            #line 93 "..\..\MainWindow.xaml"
                this.MenuItem_Play_Pause.Click += new System.Windows.RoutedEventHandler(this.MenuItem_Play_Pause_Click);

            #line default
            #line hidden
                return;

            case 14:
                this.MenuItem_PlayFromStart = ((System.Windows.Controls.MenuItem)(target));

            #line 94 "..\..\MainWindow.xaml"
                this.MenuItem_PlayFromStart.Click += new System.Windows.RoutedEventHandler(this.MenuItem_PlayFromStart_Click);

            #line default
            #line hidden
                return;

            case 15:
                this.MenuItem_StopPlay = ((System.Windows.Controls.MenuItem)(target));

            #line 95 "..\..\MainWindow.xaml"
                this.MenuItem_StopPlay.Click += new System.Windows.RoutedEventHandler(this.MenuItem_StopPlay_Click);

            #line default
            #line hidden
                return;

            case 16:
                this.MenuItem_VolumeUp = ((System.Windows.Controls.MenuItem)(target));

            #line 102 "..\..\MainWindow.xaml"
                this.MenuItem_VolumeUp.Click += new System.Windows.RoutedEventHandler(this.MenuItem_VolumeUp_Click);

            #line default
            #line hidden
                return;

            case 17:
                this.MenuItem_VolumeDown = ((System.Windows.Controls.MenuItem)(target));

            #line 103 "..\..\MainWindow.xaml"
                this.MenuItem_VolumeDown.Click += new System.Windows.RoutedEventHandler(this.MenuItem_VolumeDown_Click);

            #line default
            #line hidden
                return;

            case 18:
                this.MenuItem_OpenSettingsView = ((System.Windows.Controls.MenuItem)(target));

            #line 105 "..\..\MainWindow.xaml"
                this.MenuItem_OpenSettingsView.Click += new System.Windows.RoutedEventHandler(this.MenuItem_OpenSettingsView_Click);

            #line default
            #line hidden
                return;

            case 19:
                this.MenuItem_MaxView = ((System.Windows.Controls.MenuItem)(target));

            #line 113 "..\..\MainWindow.xaml"
                this.MenuItem_MaxView.Click += new System.Windows.RoutedEventHandler(this.MenuItem_MaxView_Click);

            #line default
            #line hidden
                return;

            case 20:
                this.MenuItem_MinView = ((System.Windows.Controls.MenuItem)(target));

            #line 114 "..\..\MainWindow.xaml"
                this.MenuItem_MinView.Click += new System.Windows.RoutedEventHandler(this.MenuItem_MinView_Click);

            #line default
            #line hidden
                return;

            case 21:
                this.MenuItem_CloseView = ((System.Windows.Controls.MenuItem)(target));

            #line 115 "..\..\MainWindow.xaml"
                this.MenuItem_CloseView.Click += new System.Windows.RoutedEventHandler(this.MenuItem_CloseView_Click);

            #line default
            #line hidden
                return;

            case 22:
                this.MenuItem_About = ((System.Windows.Controls.MenuItem)(target));

            #line 121 "..\..\MainWindow.xaml"
                this.MenuItem_About.Click += new System.Windows.RoutedEventHandler(this.MenuItem_About_Click);

            #line default
            #line hidden
                return;

            case 23:
                this.btnPlay = ((System.Windows.Controls.Button)(target));

            #line 140 "..\..\MainWindow.xaml"
                this.btnPlay.Click += new System.Windows.RoutedEventHandler(this.BtnPlay_Click);

            #line default
            #line hidden
                return;

            case 24:
                this.iconPlay = ((MaterialDesignThemes.Wpf.PackIcon)(target));
                return;

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

            #line 148 "..\..\MainWindow.xaml"
                this.BtnchangeVolume.Click += new System.Windows.RoutedEventHandler(this.BtnchangeVolume_Click);

            #line default
            #line hidden
                return;

            case 26:
                this.packicon_volumestate = ((MaterialDesignThemes.Wpf.PackIcon)(target));
                return;

            case 27:
                this.MainVolume = ((System.Windows.Controls.Slider)(target));

            #line 151 "..\..\MainWindow.xaml"
                this.MainVolume.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.MainVolume_ValueChanged);

            #line default
            #line hidden
                return;

            case 28:
                this.ImageAlbumArtBG = ((MaterialDesignThemes.Wpf.Card)(target));

            #line 159 "..\..\MainWindow.xaml"
                this.ImageAlbumArtBG.MouseEnter += new System.Windows.Input.MouseEventHandler(this.ImageAlbumArtBG_MouseEnter);

            #line default
            #line hidden

            #line 159 "..\..\MainWindow.xaml"
                this.ImageAlbumArtBG.MouseLeave += new System.Windows.Input.MouseEventHandler(this.ImageAlbumArtBG_MouseLeave);

            #line default
            #line hidden
                return;

            case 29:
                this.ImageAlbumArt = ((System.Windows.Controls.Image)(target));
                return;

            case 30:
                this.LabelTime = ((System.Windows.Controls.Label)(target));
                return;

            case 31:
                this.LabelTitle = ((System.Windows.Controls.Label)(target));
                return;

            case 32:
                this.LabelLeftTime = ((System.Windows.Controls.Label)(target));
                return;

            case 33:
                this.MainProgressBar = ((System.Windows.Controls.Slider)(target));

            #line 175 "..\..\MainWindow.xaml"
                this.MainProgressBar.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.MainProgressBar_MouseUp);

            #line default
            #line hidden

            #line 177 "..\..\MainWindow.xaml"
                this.MainProgressBar.AddHandler(System.Windows.Controls.Primitives.Thumb.DragCompletedEvent, new System.Windows.Controls.Primitives.DragCompletedEventHandler(this.MainProgressBar_DragCompleted));

            #line default
            #line hidden

            #line 178 "..\..\MainWindow.xaml"
                this.MainProgressBar.AddHandler(System.Windows.Controls.Primitives.Thumb.DragStartedEvent, new System.Windows.Controls.Primitives.DragStartedEventHandler(this.MainProgressBar_DragStarted));

            #line default
            #line hidden
                return;

            case 34:
                this.PopupBox_List = ((MaterialDesignThemes.Wpf.PopupBox)(target));
                return;

            case 35:
                this.ImageAlbumArtBig = ((System.Windows.Controls.Image)(target));

            #line 256 "..\..\MainWindow.xaml"
                this.ImageAlbumArtBig.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.ImageAlbumArtBig_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 36:
                this.LabelTitleForCard = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 37:
                this.LabelAlbumForCard = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 38:
                this.LabelArtistForCard = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 39:
                this.ListViewCard = ((MaterialDesignThemes.Wpf.Card)(target));
                return;

            case 40:
                this.ListViewItemBit = ((System.Windows.Controls.ListViewItem)(target));
                return;

            case 41:
                this.ListViewItemRate = ((System.Windows.Controls.ListViewItem)(target));
                return;

            case 42:
                this.ListViewItemWriteTime = ((System.Windows.Controls.ListViewItem)(target));
                return;

            case 43:
                this.ListViewItemAddTime = ((System.Windows.Controls.ListViewItem)(target));
                return;

            case 44:
                this.ListViewItemFileSize = ((System.Windows.Controls.ListViewItem)(target));
                return;

            case 45:
                this.ListViewItemFilePath = ((System.Windows.Controls.ListViewItem)(target));
                return;

            case 46:
                this.BtnSaveInfo = ((System.Windows.Controls.Button)(target));

            #line 386 "..\..\MainWindow.xaml"
                this.BtnSaveInfo.Click += new System.Windows.RoutedEventHandler(this.BtnSaveInfo_Click);

            #line default
            #line hidden
                return;

            case 47:
                this.BtnOpenLyric = ((MaterialDesignThemes.Wpf.PopupBox)(target));
                return;

            case 48:
                this.BtnOpenLyricEX = ((System.Windows.Controls.Button)(target));

            #line 402 "..\..\MainWindow.xaml"
                this.BtnOpenLyricEX.Click += new System.Windows.RoutedEventHandler(this.BtnOpenLyricEX_Click);

            #line default
            #line hidden
                return;

            case 49:
                this.BtnSearchLyric = ((System.Windows.Controls.Button)(target));

            #line 405 "..\..\MainWindow.xaml"
                this.BtnSearchLyric.Click += new System.Windows.RoutedEventHandler(this.BtnOpenLyricEX_Click);

            #line default
            #line hidden
                return;

            case 50:
                this.BaseLineSP = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 51:
                this.BaseLine = ((System.Windows.Shapes.Line)(target));
                return;

            case 52:
                this.tbDragTime = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 53:
                this.CanvasLyric = ((System.Windows.Controls.Canvas)(target));
                return;

            case 54:
                this.StackPanelCommonLyric = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 55:
                this.CanvasFocusLyric = ((System.Windows.Controls.Canvas)(target));
                return;

            case 56:
                this.TBFocusLyricBack = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 57:
                this.CanvasFocusLyricFore = ((System.Windows.Controls.Canvas)(target));
                return;

            case 58:
                this.TBFocusLyricFore = ((System.Windows.Controls.TextBlock)(target));
                return;
            }
            this._contentLoaded = true;
        }
コード例 #35
0
ファイル: Base.g.i.cs プロジェクト: korproject/PoliMakro
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 17 "..\..\..\Main\Base.xaml"
                ((Poli.Makro.Main.Base)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_OnLoaded);

            #line default
            #line hidden

            #line 17 "..\..\..\Main\Base.xaml"
                ((Poli.Makro.Main.Base)(target)).SizeChanged += new System.Windows.SizeChangedEventHandler(this.Window_SizeChanged);

            #line default
            #line hidden

            #line 18 "..\..\..\Main\Base.xaml"
                ((Poli.Makro.Main.Base)(target)).SourceInitialized += new System.EventHandler(this.Window_SourceInitialized);

            #line default
            #line hidden
                return;

            case 2:
                this.TaskbarItemInfo = ((System.Windows.Shell.TaskbarItemInfo)(target));
                return;

            case 3:
                this.MyNotifyIcon = ((Hardcodet.Wpf.TaskbarNotification.TaskbarIcon)(target));
                return;

            case 4:

            #line 84 "..\..\..\Main\Base.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.ColorPickerMini_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.Path1 = ((System.Windows.Shapes.Path)(target));
                return;

            case 6:
                this.Path2 = ((System.Windows.Shapes.Path)(target));
                return;

            case 7:
                this.SideBarTabControl = ((System.Windows.Controls.TabControl)(target));

            #line 153 "..\..\..\Main\Base.xaml"
                this.SideBarTabControl.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.SideBarTabControl_SelectionChanged);

            #line default
            #line hidden
                return;

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

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

            case 10:

            #line 229 "..\..\..\Main\Base.xaml"
                ((System.Windows.Controls.Border)(target)).MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.MoveLayer_MouseLeftButtonDown);

            #line default
            #line hidden

            #line 230 "..\..\..\Main\Base.xaml"
                ((System.Windows.Controls.Border)(target)).PreviewMouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.MoveLayer_PreviewMouseLeftButtonUp);

            #line default
            #line hidden

            #line 231 "..\..\..\Main\Base.xaml"
                ((System.Windows.Controls.Border)(target)).PreviewMouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.MoveLayer_PreviewMouseLeftButtonDown);

            #line default
            #line hidden

            #line 232 "..\..\..\Main\Base.xaml"
                ((System.Windows.Controls.Border)(target)).PreviewMouseMove += new System.Windows.Input.MouseEventHandler(this.MoveLayer_PreviewMouseMove);

            #line default
            #line hidden
                return;

            case 11:

            #line 235 "..\..\..\Main\Base.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.OpenCommandConsole);

            #line default
            #line hidden
                return;

            case 12:

            #line 276 "..\..\..\Main\Base.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.DisposeSomethings);

            #line default
            #line hidden
                return;

            case 13:

            #line 279 "..\..\..\Main\Base.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.DisposeSomethings);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
コード例 #36
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 22 "..\..\..\MainWindow.xaml"
                ((FramelessWPF.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);

            #line default
            #line hidden

            #line 23 "..\..\..\MainWindow.xaml"
                ((FramelessWPF.MainWindow)(target)).SizeChanged += new System.Windows.SizeChangedEventHandler(this.Window_SizeChanged);

            #line default
            #line hidden
                return;

            case 2:
                this.taskBarItemInfo1 = ((System.Windows.Shell.TaskbarItemInfo)(target));
                return;

            case 3:
                this.btnPreviewForTaskBar = ((System.Windows.Shell.ThumbButtonInfo)(target));

            #line 50 "..\..\..\MainWindow.xaml"
                this.btnPreviewForTaskBar.Click += new System.EventHandler(this.BtnPreviewForTaskBar_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.btnPlayForTaskBar = ((System.Windows.Shell.ThumbButtonInfo)(target));

            #line 54 "..\..\..\MainWindow.xaml"
                this.btnPlayForTaskBar.Click += new System.EventHandler(this.BtnPlayForTaskBar_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.btnNextForTaskBar = ((System.Windows.Shell.ThumbButtonInfo)(target));
                return;

            case 6:
                this.dig_ifCreatStream = ((MaterialDesignThemes.Wpf.DialogHost)(target));

            #line 77 "..\..\..\MainWindow.xaml"
                this.dig_ifCreatStream.DialogClosing += new MaterialDesignThemes.Wpf.DialogClosingEventHandler(this.DialogHost_DialogClosing);

            #line default
            #line hidden
                return;

            case 7:
                this.dig_Commander = ((MaterialDesignThemes.Wpf.DialogHost)(target));

            #line 106 "..\..\..\MainWindow.xaml"
                this.dig_Commander.DialogClosing += new MaterialDesignThemes.Wpf.DialogClosingEventHandler(this.dig_Commander_DialogClosing);

            #line default
            #line hidden
                return;

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

            case 9:
                this.dig_Error = ((MaterialDesignThemes.Wpf.DialogHost)(target));

            #line 135 "..\..\..\MainWindow.xaml"
                this.dig_Error.DialogClosing += new MaterialDesignThemes.Wpf.DialogClosingEventHandler(this.Dig_Error_DialogClosing);

            #line default
            #line hidden
                return;

            case 10:
                this.MainMenu = ((System.Windows.Controls.Menu)(target));

            #line 153 "..\..\..\MainWindow.xaml"
                this.MainMenu.MouseMove += new System.Windows.Input.MouseEventHandler(this.MainMenu_MouseMove);

            #line default
            #line hidden

            #line 153 "..\..\..\MainWindow.xaml"
                this.MainMenu.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.MainMenu_MouseDown);

            #line default
            #line hidden
                return;

            case 11:
                this.MenuItem_OpenFile = ((System.Windows.Controls.MenuItem)(target));

            #line 155 "..\..\..\MainWindow.xaml"
                this.MenuItem_OpenFile.Click += new System.Windows.RoutedEventHandler(this.MenuItem_OpenFile_Click);

            #line default
            #line hidden
                return;

            case 12:
                this.MenuItem_OpenCD = ((System.Windows.Controls.MenuItem)(target));

            #line 158 "..\..\..\MainWindow.xaml"
                this.MenuItem_OpenCD.Click += new System.Windows.RoutedEventHandler(this.MenuItem_OpenCD_Click);

            #line default
            #line hidden
                return;

            case 13:
                this.MenuItem_AddFile = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 14:
                this.MenuItem_AddFloder = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 15:
                this.MenuItem_AddCD = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 16:
                this.MenuItem_Exit = ((System.Windows.Controls.MenuItem)(target));

            #line 163 "..\..\..\MainWindow.xaml"
                this.MenuItem_Exit.Click += new System.Windows.RoutedEventHandler(this.MenuItem_Exit_Click);

            #line default
            #line hidden
                return;

            case 17:
                this.MenuItem_Play_Pause = ((System.Windows.Controls.MenuItem)(target));

            #line 166 "..\..\..\MainWindow.xaml"
                this.MenuItem_Play_Pause.Click += new System.Windows.RoutedEventHandler(this.MenuItem_Play_Pause_Click);

            #line default
            #line hidden
                return;

            case 18:
                this.MenuItem_PlayFromStart = ((System.Windows.Controls.MenuItem)(target));

            #line 167 "..\..\..\MainWindow.xaml"
                this.MenuItem_PlayFromStart.Click += new System.Windows.RoutedEventHandler(this.MenuItem_PlayFromStart_Click);

            #line default
            #line hidden
                return;

            case 19:
                this.MenuItem_StopPlay = ((System.Windows.Controls.MenuItem)(target));

            #line 168 "..\..\..\MainWindow.xaml"
                this.MenuItem_StopPlay.Click += new System.Windows.RoutedEventHandler(this.MenuItem_StopPlay_Click);

            #line default
            #line hidden
                return;

            case 20:
                this.MenuItem_CopyFile = ((System.Windows.Controls.MenuItem)(target));

            #line 172 "..\..\..\MainWindow.xaml"
                this.MenuItem_CopyFile.Click += new System.Windows.RoutedEventHandler(this.MenuItem_CopyFile_Click);

            #line default
            #line hidden
                return;

            case 21:
                this.MenuItem_VolumeUp = ((System.Windows.Controls.MenuItem)(target));

            #line 176 "..\..\..\MainWindow.xaml"
                this.MenuItem_VolumeUp.Click += new System.Windows.RoutedEventHandler(this.MenuItem_VolumeUp_Click);

            #line default
            #line hidden
                return;

            case 22:
                this.MenuItem_VolumeDown = ((System.Windows.Controls.MenuItem)(target));

            #line 177 "..\..\..\MainWindow.xaml"
                this.MenuItem_VolumeDown.Click += new System.Windows.RoutedEventHandler(this.MenuItem_VolumeDown_Click);

            #line default
            #line hidden
                return;

            case 23:
                this.MenuItem_OpenSettingsView = ((System.Windows.Controls.MenuItem)(target));

            #line 179 "..\..\..\MainWindow.xaml"
                this.MenuItem_OpenSettingsView.Click += new System.Windows.RoutedEventHandler(this.MenuItem_OpenSettingsView_Click);

            #line default
            #line hidden
                return;

            case 24:
                this.MenuItem_Commander = ((System.Windows.Controls.MenuItem)(target));

            #line 182 "..\..\..\MainWindow.xaml"
                this.MenuItem_Commander.Click += new System.Windows.RoutedEventHandler(this.MenuItem_Commander_Click);

            #line default
            #line hidden
                return;

            case 25:
                this.MenuItem_MaxView = ((System.Windows.Controls.MenuItem)(target));

            #line 188 "..\..\..\MainWindow.xaml"
                this.MenuItem_MaxView.Click += new System.Windows.RoutedEventHandler(this.MenuItem_MaxView_Click);

            #line default
            #line hidden
                return;

            case 26:
                this.MenuItem_MinView = ((System.Windows.Controls.MenuItem)(target));

            #line 189 "..\..\..\MainWindow.xaml"
                this.MenuItem_MinView.Click += new System.Windows.RoutedEventHandler(this.MenuItem_MinView_Click);

            #line default
            #line hidden
                return;

            case 27:
                this.MenuItem_CloseView = ((System.Windows.Controls.MenuItem)(target));

            #line 190 "..\..\..\MainWindow.xaml"
                this.MenuItem_CloseView.Click += new System.Windows.RoutedEventHandler(this.MenuItem_CloseView_Click);

            #line default
            #line hidden
                return;

            case 28:
                this.MenuItem_ToggleTopMost = ((System.Windows.Controls.MenuItem)(target));

            #line 191 "..\..\..\MainWindow.xaml"
                this.MenuItem_ToggleTopMost.Click += new System.Windows.RoutedEventHandler(this.MenuItem_ToggleTopMost_Click);

            #line default
            #line hidden
                return;

            case 29:
                this.MenuItem_About = ((System.Windows.Controls.MenuItem)(target));

            #line 197 "..\..\..\MainWindow.xaml"
                this.MenuItem_About.Click += new System.Windows.RoutedEventHandler(this.MenuItem_About_Click);

            #line default
            #line hidden
                return;

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

            #line 217 "..\..\..\MainWindow.xaml"
                this.btnPlay.Click += new System.Windows.RoutedEventHandler(this.BtnPlay_Click);

            #line default
            #line hidden
                return;

            case 31:
                this.iconPlay = ((MaterialDesignThemes.Wpf.PackIcon)(target));
                return;

            case 32:
                this.BtnchangeVolume = ((System.Windows.Controls.Button)(target));

            #line 225 "..\..\..\MainWindow.xaml"
                this.BtnchangeVolume.Click += new System.Windows.RoutedEventHandler(this.BtnchangeVolume_Click);

            #line default
            #line hidden
                return;

            case 33:
                this.packicon_volumestate = ((MaterialDesignThemes.Wpf.PackIcon)(target));
                return;

            case 34:
                this.MainVolume = ((System.Windows.Controls.Slider)(target));

            #line 235 "..\..\..\MainWindow.xaml"
                this.MainVolume.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.MainVolume_ValueChanged);

            #line default
            #line hidden
                return;

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

            case 36:
                this.ImageAlbumArtBG = ((MaterialDesignThemes.Wpf.Card)(target));
                return;

            case 37:
                this.DropShadowEffect = ((System.Windows.Media.Effects.DropShadowEffect)(target));
                return;

            case 38:
                this.ImageAlbumArt = ((System.Windows.Controls.Image)(target));
                return;

            case 39:
                this.LabelTime = ((System.Windows.Controls.Label)(target));
                return;

            case 40:
                this.LabelTitle = ((System.Windows.Controls.Label)(target));
                return;

            case 41:
                this.LabelArtist = ((System.Windows.Controls.Label)(target));
                return;

            case 42:
                this.LabelLeftTime = ((System.Windows.Controls.Label)(target));
                return;

            case 43:
                this.svg3692 = ((System.Windows.Controls.Canvas)(target));
                return;

            case 44:
                this.path3684 = ((System.Windows.Shapes.Path)(target));
                return;

            case 45:
                this.path3686 = ((System.Windows.Shapes.Path)(target));
                return;

            case 46:
                this.path3688 = ((System.Windows.Shapes.Path)(target));
                return;

            case 47:
                this.path3690 = ((System.Windows.Shapes.Path)(target));
                return;

            case 48:
                this.MainProgressBar = ((System.Windows.Controls.Slider)(target));

            #line 322 "..\..\..\MainWindow.xaml"
                this.MainProgressBar.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.MainProgressBar_MouseUp);

            #line default
            #line hidden

            #line 324 "..\..\..\MainWindow.xaml"
                this.MainProgressBar.AddHandler(System.Windows.Controls.Primitives.Thumb.DragCompletedEvent, new System.Windows.Controls.Primitives.DragCompletedEventHandler(this.MainProgressBar_DragCompleted));

            #line default
            #line hidden

            #line 325 "..\..\..\MainWindow.xaml"
                this.MainProgressBar.AddHandler(System.Windows.Controls.Primitives.Thumb.DragStartedEvent, new System.Windows.Controls.Primitives.DragStartedEventHandler(this.MainProgressBar_DragStarted));

            #line default
            #line hidden
                return;

            case 49:
                this.TextBox_Search = ((System.Windows.Controls.TextBox)(target));

            #line 347 "..\..\..\MainWindow.xaml"
                this.TextBox_Search.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.TextBox_Search_TextChanged);

            #line default
            #line hidden

            #line 347 "..\..\..\MainWindow.xaml"
                this.TextBox_Search.TextInput += new System.Windows.Input.TextCompositionEventHandler(this.TextBox_Search_TextInput);

            #line default
            #line hidden
                return;

            case 50:
                this.Btn_Search = ((System.Windows.Controls.Button)(target));

            #line 350 "..\..\..\MainWindow.xaml"
                this.Btn_Search.Click += new System.Windows.RoutedEventHandler(this.Btn_Search_Click);

            #line default
            #line hidden

            #line 350 "..\..\..\MainWindow.xaml"
                this.Btn_Search.GotFocus += new System.Windows.RoutedEventHandler(this.Btn_Search_GotFocus);

            #line default
            #line hidden

            #line 350 "..\..\..\MainWindow.xaml"
                this.Btn_Search.LostFocus += new System.Windows.RoutedEventHandler(this.Btn_Search_LostFocus);

            #line default
            #line hidden
                return;

            case 51:
                this.PopupBox_List = ((MaterialDesignThemes.Wpf.PopupBox)(target));
                return;

            case 52:
                this.ImageAlbumArtBig = ((System.Windows.Controls.Image)(target));

            #line 407 "..\..\..\MainWindow.xaml"
                this.ImageAlbumArtBig.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.ImageAlbumArtBig_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 53:
                this.LabelTitleForCard = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 54:
                this.LabelAlbumForCard = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 55:
                this.LabelArtistForCard = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 56:
                this.ListViewCard = ((MaterialDesignThemes.Wpf.Card)(target));
                return;

            case 57:
                this.tb1 = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 58:
                this.ListViewItemBit = ((System.Windows.Controls.ListViewItem)(target));
                return;

            case 59:
                this.ListViewItemRate = ((System.Windows.Controls.ListViewItem)(target));
                return;

            case 60:
                this.ListViewItemWriteTime = ((System.Windows.Controls.ListViewItem)(target));
                return;

            case 61:
                this.ListViewItemAddTime = ((System.Windows.Controls.ListViewItem)(target));
                return;

            case 62:
                this.ListViewItemFileSize = ((System.Windows.Controls.ListViewItem)(target));
                return;

            case 63:
                this.ListViewItemFilePath = ((System.Windows.Controls.ListViewItem)(target));
                return;

            case 64:
                this.BtnSaveInfo = ((System.Windows.Controls.Button)(target));

            #line 538 "..\..\..\MainWindow.xaml"
                this.BtnSaveInfo.Click += new System.Windows.RoutedEventHandler(this.BtnSaveInfo_Click);

            #line default
            #line hidden
                return;

            case 65:
                this.BtnOpenLyric = ((MaterialDesignThemes.Wpf.PopupBox)(target));
                return;

            case 66:
                this.BtnOpenLyricEX = ((System.Windows.Controls.Button)(target));

            #line 554 "..\..\..\MainWindow.xaml"
                this.BtnOpenLyricEX.Click += new System.Windows.RoutedEventHandler(this.BtnOpenLyricEX_Click);

            #line default
            #line hidden
                return;

            case 67:
                this.BtnSearchLyric = ((System.Windows.Controls.Button)(target));

            #line 557 "..\..\..\MainWindow.xaml"
                this.BtnSearchLyric.Click += new System.Windows.RoutedEventHandler(this.BtnOpenLyricEX_Click);

            #line default
            #line hidden
                return;

            case 68:
                this.BaseLineSP = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 69:
                this.BaseLine = ((System.Windows.Shapes.Line)(target));
                return;

            case 70:
                this.tbDragTime = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 71:
                this.CanvasLyric = ((System.Windows.Controls.Canvas)(target));
                return;

            case 72:
                this.StackPanelCommonLyric = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 73:
                this.CanvasFocusLyric = ((System.Windows.Controls.Canvas)(target));
                return;

            case 74:
                this.TBFocusLyricBack = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 75:
                this.CanvasFocusLyricFore = ((System.Windows.Controls.Canvas)(target));
                return;

            case 76:
                this.TBFocusLyricFore = ((System.Windows.Controls.TextBlock)(target));
                return;
            }
            this._contentLoaded = true;
        }
コード例 #37
0
 public static void SetTaskbarItemInfo(Window window, TaskbarItemInfo value)
 {
     Verify.IsNotNull(window, "window");
     window.SetValue(TaskbarItemInfoProperty, value);
 }
コード例 #38
0
        /// <summary>
        /// Designed to be called from a seperate thread from the main thread (multi threading)
        /// </summary>
        /// <param name="value"></param>
        private void SetDownloadProgressbarProgress(int value)
        {
            try
            {
                if (!CloseAllThreads)
                    if(value > 0)
                        this.Invoke(new Action(delegate() { this.progressBarDownload.Value = value; }));
                    else
                        this.Invoke(new Action(delegate() { this.progressBarDownload.Value = 0; }));

                if(_useTaskbarProgressBar)
                {
                    TaskbarItemInfo Tii = new TaskbarItemInfo();
                    Tii.ProgressState = TaskbarItemProgressState.Normal;
                    Tii.ProgressValue = value;

                }
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
コード例 #39
0
ファイル: MainWindow.g.cs プロジェクト: toatall/AutoEod3
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Main = ((AutoEod3.MainWindow)(target));

            #line 10 "..\..\MainWindow.xaml"
                this.Main.Closing += new System.ComponentModel.CancelEventHandler(this.Main_Closing);

            #line default
            #line hidden
                return;

            case 2:
                this.taskBarInfo = ((System.Windows.Shell.TaskbarItemInfo)(target));
                return;

            case 3:
                this.RibbonWin = ((System.Windows.Controls.Ribbon.Ribbon)(target));
                return;

            case 4:

            #line 28 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Ribbon.RibbonButton)(target)).Click += new System.Windows.RoutedEventHandler(this.RibbonButton_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.btnExit = ((System.Windows.Controls.Ribbon.RibbonApplicationMenuItem)(target));

            #line 38 "..\..\MainWindow.xaml"
                this.btnExit.Click += new System.Windows.RoutedEventHandler(this.btnExit_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.Run = ((System.Windows.Controls.Ribbon.RibbonGroup)(target));
                return;

            case 7:
                this.btnRunSelect = ((System.Windows.Controls.Ribbon.RibbonButton)(target));

            #line 45 "..\..\MainWindow.xaml"
                this.btnRunSelect.Click += new System.Windows.RoutedEventHandler(this.btnRunSelect_Click);

            #line default
            #line hidden
                return;

            case 8:
                this.btnRunAll = ((System.Windows.Controls.Ribbon.RibbonButton)(target));

            #line 46 "..\..\MainWindow.xaml"
                this.btnRunAll.Click += new System.Windows.RoutedEventHandler(this.btnRunAll_Click);

            #line default
            #line hidden
                return;

            case 9:
                this.btnCancel = ((System.Windows.Controls.Ribbon.RibbonButton)(target));

            #line 47 "..\..\MainWindow.xaml"
                this.btnCancel.Click += new System.Windows.RoutedEventHandler(this.btnCancel_Click);

            #line default
            #line hidden
                return;

            case 10:
                this.waitRunGroup = ((System.Windows.Controls.Ribbon.RibbonGroup)(target));
                return;

            case 11:
                this.waitRunText = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 12:
                this.treeQBE = ((System.Windows.Controls.TreeView)(target));

            #line 55 "..\..\MainWindow.xaml"
                this.treeQBE.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.treeQBE_MouseDoubleClick);

            #line default
            #line hidden
                return;

            case 14:
                this.listViewResult = ((System.Windows.Controls.ListView)(target));
                return;

            case 15:
                this.textCountThreadComplete = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 16:
                this.textCountThreadAll = ((System.Windows.Controls.TextBlock)(target));
                return;
            }
            this._contentLoaded = true;
        }
コード例 #40
0
ファイル: MainWnd.g.cs プロジェクト: RasyidUFA/UFSJ
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.mainWindow = ((UFSJ.MainWnd)(target));
     
     #line 1 "..\..\MainWnd.xaml"
     this.mainWindow.Drop += new System.Windows.DragEventHandler(this.Grid_Drop);
     
     #line default
     #line hidden
     
     #line 1 "..\..\MainWnd.xaml"
     this.mainWindow.DragEnter += new System.Windows.DragEventHandler(this.Grid_DragEnter);
     
     #line default
     #line hidden
     
     #line 1 "..\..\MainWnd.xaml"
     this.mainWindow.LocationChanged += new System.EventHandler(this.mainWindow_LocationChanged);
     
     #line default
     #line hidden
     return;
     case 2:
     this.TaskBarInfo = ((System.Windows.Shell.TaskbarItemInfo)(target));
     return;
     case 3:
     
     #line 6 "..\..\MainWnd.xaml"
     ((System.Windows.Shell.ThumbButtonInfo)(target)).Click += new System.EventHandler(this.ThumbButtonInfo_Click);
     
     #line default
     #line hidden
     return;
     case 4:
     this.mainTab = ((System.Windows.Controls.TabControl)(target));
     return;
     case 5:
     this.mainTabFile = ((System.Windows.Controls.TabItem)(target));
     return;
     case 6:
     this.fileGird = ((System.Windows.Controls.Grid)(target));
     return;
     case 7:
     this.fileTab = ((System.Windows.Controls.TabControl)(target));
     return;
     case 8:
     this.fileTabOptions = ((System.Windows.Controls.TabItem)(target));
     return;
     case 9:
     this.OptionGrid = ((System.Windows.Controls.Grid)(target));
     return;
     case 10:
     this.GridTrans = ((System.Windows.Media.TranslateTransform)(target));
     return;
     case 11:
     this.FileOptOntop = ((System.Windows.Controls.CheckBox)(target));
     
     #line 39 "..\..\MainWnd.xaml"
     this.FileOptOntop.Click += new System.Windows.RoutedEventHandler(this.chkOntop_Click);
     
     #line default
     #line hidden
     return;
     case 12:
     this.FileOptHideProgress = ((System.Windows.Controls.CheckBox)(target));
     
     #line 40 "..\..\MainWnd.xaml"
     this.FileOptHideProgress.Click += new System.Windows.RoutedEventHandler(this.chkOntop_Click);
     
     #line default
     #line hidden
     return;
     case 13:
     this.FileOptShowInfo = ((System.Windows.Controls.CheckBox)(target));
     
     #line 41 "..\..\MainWnd.xaml"
     this.FileOptShowInfo.Unloaded += new System.Windows.RoutedEventHandler(this.FileOptShowInfo_Unloaded);
     
     #line default
     #line hidden
     return;
     case 14:
     this.fileAppTheme = ((System.Windows.Controls.ComboBox)(target));
     
     #line 45 "..\..\MainWnd.xaml"
     this.fileAppTheme.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.fileAppTheme_SelectionChanged);
     
     #line default
     #line hidden
     return;
     case 15:
     this.fileAppLanguage = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 16:
     this.fileAppLangA = ((System.Windows.Controls.Button)(target));
     
     #line 103 "..\..\MainWnd.xaml"
     this.fileAppLangA.Click += new System.Windows.RoutedEventHandler(this.fileAppLangA_Click);
     
     #line default
     #line hidden
     return;
     case 17:
     this.fileAppLangM = ((System.Windows.Controls.Button)(target));
     
     #line 104 "..\..\MainWnd.xaml"
     this.fileAppLangM.Click += new System.Windows.RoutedEventHandler(this.fileAppLangM_Click);
     
     #line default
     #line hidden
     return;
     case 18:
     this.fileSettingAssociateExt = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 19:
     this.fileSettingIntergrate = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 20:
     this.fileSettingStartSilent = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 21:
     this.bSaveSetting = ((System.Windows.Controls.Button)(target));
     
     #line 118 "..\..\MainWnd.xaml"
     this.bSaveSetting.Click += new System.Windows.RoutedEventHandler(this.button_Click);
     
     #line default
     #line hidden
     return;
     case 22:
     this.bLoadSetting = ((System.Windows.Controls.Button)(target));
     return;
     case 23:
     this.fileSettingFormat = ((System.Windows.Controls.TextBox)(target));
     return;
     case 24:
     this.fileSettingPreview = ((System.Windows.Controls.Label)(target));
     return;
     case 25:
     this.fileCDefs = ((System.Windows.Controls.ComboBox)(target));
     
     #line 124 "..\..\MainWnd.xaml"
     this.fileCDefs.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.fileCDefs_SelectionChanged);
     
     #line default
     #line hidden
     return;
     case 26:
     this.fileTabCredits = ((System.Windows.Controls.TabItem)(target));
     return;
     case 27:
     this.CreditsGrid = ((System.Windows.Controls.Grid)(target));
     return;
     case 28:
     this.CredTrans = ((System.Windows.Media.TranslateTransform)(target));
     return;
     case 29:
     this.fileTabAbout = ((System.Windows.Controls.TabItem)(target));
     return;
     case 30:
     this.Titles = ((System.Windows.Controls.Label)(target));
     return;
     case 31:
     this.Edition = ((System.Windows.Controls.Label)(target));
     return;
     case 32:
     this.FreeLabel = ((System.Windows.Controls.Label)(target));
     return;
     case 33:
     this.FreeTrans = ((System.Windows.Media.TranslateTransform)(target));
     return;
     case 34:
     this.LogoGrid = ((System.Windows.Controls.Grid)(target));
     return;
     case 35:
     this.Logo = ((System.Windows.Controls.Image)(target));
     return;
     case 36:
     this.AboutGrid = ((System.Windows.Controls.Grid)(target));
     return;
     case 37:
     this.About = ((System.Windows.Controls.Label)(target));
     return;
     case 38:
     this.About3 = ((System.Windows.Controls.Label)(target));
     return;
     case 39:
     this.About5 = ((System.Windows.Controls.Label)(target));
     return;
     case 40:
     this.OsInfo = ((System.Windows.Controls.Label)(target));
     return;
     case 41:
     this.AboutName = ((System.Windows.Controls.Label)(target));
     return;
     case 42:
     this.AboutVersion = ((System.Windows.Controls.Label)(target));
     return;
     case 43:
     this.FreeLabel_Copy = ((System.Windows.Controls.Label)(target));
     return;
     case 44:
     this.imgKIR = ((System.Windows.Controls.Image)(target));
     
     #line 233 "..\..\MainWnd.xaml"
     this.imgKIR.MouseMove += new System.Windows.Input.MouseEventHandler(this.imgKIR_MouseMove);
     
     #line default
     #line hidden
     return;
     case 45:
     this.imgUFSJ = ((System.Windows.Controls.Image)(target));
     
     #line 234 "..\..\MainWnd.xaml"
     this.imgUFSJ.MouseMove += new System.Windows.Input.MouseEventHandler(this.imgUFSJ_MouseMove);
     
     #line default
     #line hidden
     return;
     case 46:
     this.imgUFASoft = ((System.Windows.Controls.Image)(target));
     
     #line 235 "..\..\MainWnd.xaml"
     this.imgUFASoft.MouseMove += new System.Windows.Input.MouseEventHandler(this.imgUFASoft_MouseMove);
     
     #line default
     #line hidden
     return;
     case 47:
     this.imgSMP = ((System.Windows.Controls.Image)(target));
     
     #line 236 "..\..\MainWnd.xaml"
     this.imgSMP.MouseMove += new System.Windows.Input.MouseEventHandler(this.imgSMP_MouseMove);
     
     #line default
     #line hidden
     return;
     case 48:
     this.lInformationSupport = ((System.Windows.Controls.Label)(target));
     return;
     case 49:
     this.fileTabUpdates = ((System.Windows.Controls.TabItem)(target));
     return;
     case 50:
     this.mainTabSplit = ((System.Windows.Controls.TabItem)(target));
     return;
     case 51:
     this.splitGird = ((System.Windows.Controls.Grid)(target));
     
     #line 253 "..\..\MainWnd.xaml"
     this.splitGird.DragEnter += new System.Windows.DragEventHandler(this.Grid_DragEnter);
     
     #line default
     #line hidden
     
     #line 253 "..\..\MainWnd.xaml"
     this.splitGird.Drop += new System.Windows.DragEventHandler(this.Grid_Drop);
     
     #line default
     #line hidden
     return;
     case 52:
     this.splitInSize = ((System.Windows.Controls.Label)(target));
     return;
     case 53:
     this.splitInPath = ((System.Windows.Controls.TextBox)(target));
     
     #line 257 "..\..\MainWnd.xaml"
     this.splitInPath.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.splitPathIn_TextChanged);
     
     #line default
     #line hidden
     return;
     case 54:
     this.splitInBrowse = ((System.Windows.Controls.Button)(target));
     
     #line 258 "..\..\MainWnd.xaml"
     this.splitInBrowse.Click += new System.Windows.RoutedEventHandler(this.SpltBrowseIn_Click);
     
     #line default
     #line hidden
     return;
     case 55:
     this.splitOutSize = ((System.Windows.Controls.Label)(target));
     return;
     case 56:
     this.splitOutPath = ((System.Windows.Controls.TextBox)(target));
     
     #line 260 "..\..\MainWnd.xaml"
     this.splitOutPath.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.splitPathOut_TextChanged);
     
     #line default
     #line hidden
     return;
     case 57:
     this.splitOutBrowse = ((System.Windows.Controls.Button)(target));
     
     #line 261 "..\..\MainWnd.xaml"
     this.splitOutBrowse.Click += new System.Windows.RoutedEventHandler(this.SpltBrowseOut_Click);
     
     #line default
     #line hidden
     return;
     case 58:
     this.splitOptionGrid = ((System.Windows.Controls.Grid)(target));
     return;
     case 59:
     this.splitOptComboPreDef = ((System.Windows.Controls.ComboBox)(target));
     
     #line 274 "..\..\MainWnd.xaml"
     this.splitOptComboPreDef.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cPresent_SelectionChanged);
     
     #line default
     #line hidden
     return;
     case 60:
     this.splitOptSizeT = ((System.Windows.Controls.TextBox)(target));
     return;
     case 61:
     this.splitOptSizeC = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 62:
     this.cSplitBytes = ((System.Windows.Controls.ComboBoxItem)(target));
     return;
     case 63:
     this.cSplitKilo = ((System.Windows.Controls.ComboBoxItem)(target));
     return;
     case 64:
     this.cSplitMega = ((System.Windows.Controls.ComboBoxItem)(target));
     return;
     case 65:
     this.cSplitGiga = ((System.Windows.Controls.ComboBoxItem)(target));
     return;
     case 66:
     this.cSplitParts = ((System.Windows.Controls.ComboBoxItem)(target));
     return;
     case 67:
     this.splitOptDelete = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 68:
     this.splitOpenOutDir = ((System.Windows.Controls.Button)(target));
     return;
     case 69:
     this.splitViewSum = ((System.Windows.Controls.Button)(target));
     return;
     case 70:
     this.splitStart = ((System.Windows.Controls.Button)(target));
     
     #line 288 "..\..\MainWnd.xaml"
     this.splitStart.Click += new System.Windows.RoutedEventHandler(this.spltStart_Click);
     
     #line default
     #line hidden
     return;
     case 71:
     this.splitOptBatch = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 72:
     this.splitOptGenerateValue = ((System.Windows.Controls.TextBox)(target));
     return;
     case 73:
     this.splitOptGenerateLabel = ((System.Windows.Controls.Label)(target));
     return;
     case 74:
     this.splitPreManage = ((System.Windows.Controls.Button)(target));
     
     #line 293 "..\..\MainWnd.xaml"
     this.splitPreManage.Click += new System.Windows.RoutedEventHandler(this.splitPreManage_Click);
     
     #line default
     #line hidden
     return;
     case 75:
     this.splitOptGenerate = ((System.Windows.Controls.ComboBox)(target));
     
     #line 294 "..\..\MainWnd.xaml"
     this.splitOptGenerate.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.splitOptGenerate_SelectionChanged);
     
     #line default
     #line hidden
     return;
     case 76:
     this.mainTabJoin = ((System.Windows.Controls.TabItem)(target));
     return;
     case 77:
     this.joinGird = ((System.Windows.Controls.Grid)(target));
     return;
     case 78:
     this.joinInPath = ((System.Windows.Controls.TextBox)(target));
     
     #line 313 "..\..\MainWnd.xaml"
     this.joinInPath.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.joinInPath_TextChanged);
     
     #line default
     #line hidden
     return;
     case 79:
     this.joinInSize = ((System.Windows.Controls.Label)(target));
     return;
     case 80:
     this.joinInBrowse = ((System.Windows.Controls.Button)(target));
     
     #line 315 "..\..\MainWnd.xaml"
     this.joinInBrowse.Click += new System.Windows.RoutedEventHandler(this.JoinBrowseIn_Click);
     
     #line default
     #line hidden
     return;
     case 81:
     this.joinOutPath = ((System.Windows.Controls.TextBox)(target));
     
     #line 316 "..\..\MainWnd.xaml"
     this.joinOutPath.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.joinOutPath_TextChanged);
     
     #line default
     #line hidden
     return;
     case 82:
     this.joinOutSize = ((System.Windows.Controls.Label)(target));
     return;
     case 83:
     this.joinOutBrowse = ((System.Windows.Controls.Button)(target));
     
     #line 318 "..\..\MainWnd.xaml"
     this.joinOutBrowse.Click += new System.Windows.RoutedEventHandler(this.JoinBrowseOut_Click);
     
     #line default
     #line hidden
     return;
     case 84:
     this.joinOptionGrid = ((System.Windows.Controls.Grid)(target));
     return;
     case 85:
     this.joinOptDelete = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 86:
     this.joinOpenOutDir = ((System.Windows.Controls.Button)(target));
     
     #line 330 "..\..\MainWnd.xaml"
     this.joinOpenOutDir.Click += new System.Windows.RoutedEventHandler(this.joinOpenOutDir_Click);
     
     #line default
     #line hidden
     return;
     case 87:
     this.joinViewSum = ((System.Windows.Controls.Button)(target));
     return;
     case 88:
     this.joinStart = ((System.Windows.Controls.Button)(target));
     
     #line 332 "..\..\MainWnd.xaml"
     this.joinStart.Click += new System.Windows.RoutedEventHandler(this.joinStart_Click);
     
     #line default
     #line hidden
     return;
     case 89:
     this.mainTabHash = ((System.Windows.Controls.TabItem)(target));
     return;
     case 90:
     this.HashGrid = ((System.Windows.Controls.Grid)(target));
     return;
     case 91:
     this.hashInPath = ((System.Windows.Controls.TextBox)(target));
     
     #line 341 "..\..\MainWnd.xaml"
     this.hashInPath.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.hashInPath_TextChanged);
     
     #line default
     #line hidden
     return;
     case 92:
     this.hashInSize = ((System.Windows.Controls.Label)(target));
     return;
     case 93:
     this.hashInBrowse = ((System.Windows.Controls.Button)(target));
     
     #line 343 "..\..\MainWnd.xaml"
     this.hashInBrowse.Click += new System.Windows.RoutedEventHandler(this.HashBrowseIn_Click);
     
     #line default
     #line hidden
     return;
     case 94:
     this.hashOutPath = ((System.Windows.Controls.TextBox)(target));
     
     #line 344 "..\..\MainWnd.xaml"
     this.hashOutPath.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.hashOutPath_TextChanged);
     
     #line default
     #line hidden
     return;
     case 95:
     this.hashOutSize = ((System.Windows.Controls.Label)(target));
     return;
     case 96:
     this.hashOutBrowse = ((System.Windows.Controls.Button)(target));
     
     #line 346 "..\..\MainWnd.xaml"
     this.hashOutBrowse.Click += new System.Windows.RoutedEventHandler(this.HashBrowseOut_Click);
     
     #line default
     #line hidden
     return;
     case 97:
     this.hashOptGrid = ((System.Windows.Controls.Grid)(target));
     return;
     case 98:
     this.hashOutT = ((System.Windows.Controls.TextBox)(target));
     
     #line 357 "..\..\MainWnd.xaml"
     this.hashOutT.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.hashOutT_TextChanged);
     
     #line default
     #line hidden
     return;
     case 99:
     this.hashOutAlgol = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 100:
     this.hashOutA1 = ((System.Windows.Controls.ComboBoxItem)(target));
     return;
     case 101:
     this.hashOutA2 = ((System.Windows.Controls.ComboBoxItem)(target));
     return;
     case 102:
     this.hashOutA3 = ((System.Windows.Controls.ComboBoxItem)(target));
     return;
     case 103:
     this.hashOutA4 = ((System.Windows.Controls.ComboBoxItem)(target));
     return;
     case 104:
     this.hashOutA5 = ((System.Windows.Controls.ComboBoxItem)(target));
     return;
     case 105:
     this.hashOutA6 = ((System.Windows.Controls.ComboBoxItem)(target));
     return;
     case 106:
     this.hashOutView = ((System.Windows.Controls.Button)(target));
     
     #line 366 "..\..\MainWnd.xaml"
     this.hashOutView.Click += new System.Windows.RoutedEventHandler(this.hashOutView_Click);
     
     #line default
     #line hidden
     return;
     case 107:
     this.hashOutCopy = ((System.Windows.Controls.Button)(target));
     
     #line 367 "..\..\MainWnd.xaml"
     this.hashOutCopy.Click += new System.Windows.RoutedEventHandler(this.hashOutCopy_Click);
     
     #line default
     #line hidden
     return;
     case 108:
     this.hashOpenOutDir = ((System.Windows.Controls.Button)(target));
     
     #line 368 "..\..\MainWnd.xaml"
     this.hashOpenOutDir.Click += new System.Windows.RoutedEventHandler(this.hashOpenOutDir_Click);
     
     #line default
     #line hidden
     return;
     case 109:
     this.hashViewSum = ((System.Windows.Controls.Button)(target));
     return;
     case 110:
     this.hashStart = ((System.Windows.Controls.Button)(target));
     
     #line 370 "..\..\MainWnd.xaml"
     this.hashStart.Click += new System.Windows.RoutedEventHandler(this.hashStart_Click);
     
     #line default
     #line hidden
     return;
     case 111:
     this.hashOptMD5 = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 112:
     this.hashOptCRC32 = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 113:
     this.hashOptSHA1 = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 114:
     this.hashOptSHA2 = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 115:
     this.hashOptSHA3 = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 116:
     this.hashOptSHA4 = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 117:
     this.hashSaveRes = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 118:
     this.mainTabCompare = ((System.Windows.Controls.TabItem)(target));
     return;
     case 119:
     this.diffInPath = ((System.Windows.Controls.TextBox)(target));
     
     #line 393 "..\..\MainWnd.xaml"
     this.diffInPath.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.diffInPath_TextChanged);
     
     #line default
     #line hidden
     return;
     case 120:
     this.diffInBrowse = ((System.Windows.Controls.Button)(target));
     
     #line 394 "..\..\MainWnd.xaml"
     this.diffInBrowse.Click += new System.Windows.RoutedEventHandler(this.diffInBrowse_Click);
     
     #line default
     #line hidden
     return;
     case 121:
     this.diffOutPath = ((System.Windows.Controls.TextBox)(target));
     
     #line 395 "..\..\MainWnd.xaml"
     this.diffOutPath.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.diffOutPath_TextChanged);
     
     #line default
     #line hidden
     return;
     case 122:
     this.diffOutBrowse = ((System.Windows.Controls.Button)(target));
     
     #line 396 "..\..\MainWnd.xaml"
     this.diffOutBrowse.Click += new System.Windows.RoutedEventHandler(this.diffOutBrowse_Click);
     
     #line default
     #line hidden
     return;
     case 123:
     this.diffStart = ((System.Windows.Controls.Button)(target));
     
     #line 397 "..\..\MainWnd.xaml"
     this.diffStart.Click += new System.Windows.RoutedEventHandler(this.diffStart_Click);
     
     #line default
     #line hidden
     return;
     case 124:
     this.diffOpenOutDir = ((System.Windows.Controls.Button)(target));
     
     #line 398 "..\..\MainWnd.xaml"
     this.diffOpenOutDir.Click += new System.Windows.RoutedEventHandler(this.diffOpenOutDir_Click);
     
     #line default
     #line hidden
     return;
     case 125:
     this.diffViewSum = ((System.Windows.Controls.Button)(target));
     return;
     case 126:
     this.diffInSize = ((System.Windows.Controls.Label)(target));
     return;
     case 127:
     this.diffOutSize = ((System.Windows.Controls.Label)(target));
     return;
     case 128:
     this.taskCancel = ((System.Windows.Controls.Button)(target));
     return;
     case 129:
     this.taskChildProgress = ((System.Windows.Controls.ProgressBar)(target));
     return;
     case 130:
     this.taskMainProgress = ((System.Windows.Controls.ProgressBar)(target));
     return;
     case 131:
     this.taskChildStatus = ((System.Windows.Controls.Label)(target));
     return;
     case 132:
     this.taskMainStatus = ((System.Windows.Controls.Label)(target));
     return;
     case 133:
     this.taskProgress = ((System.Windows.Controls.Label)(target));
     return;
     case 134:
     this.taskSize = ((System.Windows.Controls.Label)(target));
     return;
     case 135:
     this.taskElapsed = ((System.Windows.Controls.Label)(target));
     return;
     case 136:
     this.taskRemaining = ((System.Windows.Controls.Label)(target));
     return;
     case 137:
     this.taskHide = ((System.Windows.Controls.Button)(target));
     return;
     case 138:
     this.mainStatusBar = ((System.Windows.Controls.Primitives.StatusBar)(target));
     return;
     case 139:
     this.siStatus = ((System.Windows.Controls.Primitives.StatusBarItem)(target));
     return;
     case 140:
     this.prgStatus = ((System.Windows.Controls.ProgressBar)(target));
     
     #line 424 "..\..\MainWnd.xaml"
     this.prgStatus.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler<double>(this.prgStatus_ValueChanged);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
コード例 #41
0
        /// <summary>
        /// Constructor.
        /// </summary>
        public SetupWindow ()
        {
            // Window properties.
            Title = CmisSync.Properties_Resources.Oris4Sync;
            Width = 640;
            Height = 440;
            ResizeMode = ResizeMode.NoResize;
            Background = new SolidColorBrush (Colors.WhiteSmoke);
            Icon = UIHelpers.GetImageSource("cmissync-app", "ico");
            WindowStartupLocation = WindowStartupLocation.CenterScreen;
            Content = ContentCanvas;
            Closing += Close;
			
            // Taskbar
			TaskbarItemInfo = new TaskbarItemInfo () {
				Description = "Oris4 Sync"
			};

            // Separation and background for the line of buttons.
            this.buttonsLine = new Rectangle()
            {
                Width = Width,
                Height = 1,
                Fill = new SolidColorBrush(Color.FromRgb(223, 223, 223))
            };
            this.buttonsBackground = new Rectangle()
            {
                Width  = Width,
                Height = 40,
                Fill   = new SolidColorBrush (Color.FromRgb (240, 240, 240))    
            };
            
            // Splash image.
            this.side_splash = new Image () {
                Width  = 150,
                Height = 482
            };
            this.side_splash.Source = UIHelpers.GetImageSource ("side-splash");
            
            // Components position.

            ContentCanvas.Children.Add (this.buttonsBackground);
            Canvas.SetRight (buttonsBackground, 0);
            Canvas.SetBottom (buttonsBackground, 0);
            
            ContentCanvas.Children.Add (this.buttonsLine);
            Canvas.SetRight (this.buttonsLine, 0);
            Canvas.SetBottom (this.buttonsLine, 40);
            
            ContentCanvas.Children.Add (this.side_splash);
            Canvas.SetLeft (this.side_splash, 0);
            Canvas.SetBottom (this.side_splash, 0);
        }
コード例 #42
0
        /// <summary>
        /// Starts building the cache.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            WindowState = WindowState.Normal;

            Activate();

            TaskbarItemInfo = new TaskbarItemInfo();
             TaskbarItemInfo.ProgressState = TaskbarItemProgressState.Indeterminate;
            _timer.Start();
            _bgWorker.RunWorkerAsync();
        }
コード例 #43
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.window1 = ((MediaPlayer.MainWindow)(target));
                return;

            case 2:
                this.myInfo = ((System.Windows.Shell.TaskbarItemInfo)(target));
                return;

            case 3:

            #line 12 "..\..\MainWindow.xaml"
                ((System.Windows.Shell.ThumbButtonInfo)(target)).Click += new System.EventHandler(this.ThumbButtonInfo_Click);

            #line default
            #line hidden
                return;

            case 4:

            #line 13 "..\..\MainWindow.xaml"
                ((System.Windows.Shell.ThumbButtonInfo)(target)).Click += new System.EventHandler(this.ThumbButtonInfo_Click_1);

            #line default
            #line hidden
                return;

            case 5:

            #line 14 "..\..\MainWindow.xaml"
                ((System.Windows.Shell.ThumbButtonInfo)(target)).Click += new System.EventHandler(this.ThumbButtonInfo_Click_2);

            #line default
            #line hidden
                return;

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

            #line 21 "..\..\MainWindow.xaml"
                this.palyBtn.Click += new System.Windows.RoutedEventHandler(this.palyBtn_Click);

            #line default
            #line hidden
                return;

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

            #line 25 "..\..\MainWindow.xaml"
                this.stopBtn.Click += new System.Windows.RoutedEventHandler(this.stopBtn_Click);

            #line default
            #line hidden
                return;

            case 8:
                this.stopimg = ((System.Windows.Controls.Image)(target));
                return;

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

            #line 29 "..\..\MainWindow.xaml"
                this.pauseBtn.Click += new System.Windows.RoutedEventHandler(this.pauseBtn_Click);

            #line default
            #line hidden
                return;

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

            #line 33 "..\..\MainWindow.xaml"
                this.openBtn.Click += new System.Windows.RoutedEventHandler(this.openBtn_Click);

            #line default
            #line hidden
                return;

            case 11:
                this.rewindBtn = ((System.Windows.Controls.Button)(target));

            #line 37 "..\..\MainWindow.xaml"
                this.rewindBtn.Click += new System.Windows.RoutedEventHandler(this.rewindBtn_Click);

            #line default
            #line hidden
                return;

            case 12:
                this.fastforwardBtn = ((System.Windows.Controls.Button)(target));

            #line 41 "..\..\MainWindow.xaml"
                this.fastforwardBtn.Click += new System.Windows.RoutedEventHandler(this.fastforwardBtn_Click);

            #line default
            #line hidden
                return;

            case 13:
                this.mediaElement = ((System.Windows.Controls.MediaElement)(target));

            #line 45 "..\..\MainWindow.xaml"
                this.mediaElement.MediaEnded += new System.Windows.RoutedEventHandler(this.mediaElement_MediaEnded);

            #line default
            #line hidden

            #line 45 "..\..\MainWindow.xaml"
                this.mediaElement.MediaOpened += new System.Windows.RoutedEventHandler(this.mediaElement_MediaOpened);

            #line default
            #line hidden
                return;

            case 14:
                this.slider1 = ((System.Windows.Controls.Slider)(target));

            #line 46 "..\..\MainWindow.xaml"
                this.slider1.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.slider1_ValueChanged);

            #line default
            #line hidden
                return;

            case 15:
                this.Volume_slider = ((System.Windows.Controls.Slider)(target));

            #line 47 "..\..\MainWindow.xaml"
                this.Volume_slider.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.Volume_slider_ValueChanged);

            #line default
            #line hidden
                return;

            case 16:
                this.listbox1 = ((System.Windows.Controls.ListBox)(target));

            #line 57 "..\..\MainWindow.xaml"
                this.listbox1.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.listbox1_SelectionChanged);

            #line default
            #line hidden

            #line 57 "..\..\MainWindow.xaml"
                this.listbox1.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.listbox1_MouseDoubleClick);

            #line default
            #line hidden
                return;

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

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

            case 19:
                this.speedslider = ((System.Windows.Controls.Slider)(target));

            #line 60 "..\..\MainWindow.xaml"
                this.speedslider.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.speedslider_ValueChanged);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
コード例 #44
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 12 "..\..\MainWindow.xaml"
                ((CatTimer_WpfProject.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.MainWindow_OnLoaded);

            #line default
            #line hidden

            #line 13 "..\..\MainWindow.xaml"
                ((CatTimer_WpfProject.MainWindow)(target)).PreviewKeyDown += new System.Windows.Input.KeyEventHandler(this.MainWindow_OnPreviewKeyDown);

            #line default
            #line hidden
                return;

            case 2:
                this.taskbarItemInfo = ((System.Windows.Shell.TaskbarItemInfo)(target));
                return;

            case 3:
                this.ClockUserControl = ((CatTimer_WpfProject.ClockControl)(target));
                return;

            case 4:
                this.PausedUiUserControl = ((CatTimer_WpfProject.PausedUiControl)(target));
                return;

            case 5:
                this.BlackCatUserControl = ((CatTimer_WpfProject.BlackCatControl)(target));
                return;

            case 6:
                this.YellowCatUserControl = ((CatTimer_WpfProject.YellowCatControl)(target));
                return;

            case 7:
                this.TimingUserControl = ((CatTimer_WpfProject.TimingControl)(target));
                return;

            case 8:
                this.SettingUiUserControl = ((CatTimer_WpfProject.SettingUiControl)(target));
                return;

            case 9:
                this.WindowTitleBorder = ((System.Windows.Controls.Border)(target));

            #line 82 "..\..\MainWindow.xaml"
                this.WindowTitleBorder.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.WindowTitleBorder_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 10:
                this.SettingToggleControl = ((CatTimer_WpfProject.ToggleControl)(target));
                return;

            case 11:
                this.MinimumWindowButtonControl = ((CatTimer_WpfProject.ButtonControl)(target));
                return;

            case 12:
                this.CloseWindowButtonControl = ((CatTimer_WpfProject.ButtonControl)(target));
                return;
            }
            this._contentLoaded = true;
        }
コード例 #45
0
ファイル: RunWindow.xaml.cs プロジェクト: Cocotus/XTMF
 private void StartRun(ModelSystemEditingSession session, string runName)
 {
     string error = null;
     Dispatcher.BeginInvoke(new Action(() =>
         {
             MainWindow.Us.SetWindowName(this, "Run - " + runName);
             RunNameLabel.Text = runName;
         }));
     Run = session.Run(runName, ref error);
     ProgressReports = Run.Configuration.ProgressReports;
     Run.RunComplete += Run_RunComplete;
     Run.RunStarted += Run_RunStarted;
     Run.RuntimeError += Run_RuntimeError;
     Run.RuntimeValidationError += Run_RuntimeValidationError;
     Run.ValidationStarting += Run_ValidationStarting;
     Run.ValidationError += Run_ValidationError;
     RunDirectory = Run.RunDirectory;
     Timer = new DispatcherTimer();
     Timer.Interval = TimeSpan.FromMilliseconds(1000 / 30);
     Timer.Tick += new EventHandler(Timer_Tick);
     if(Environment.OSVersion.Platform == PlatformID.Win32NT)
     {
         var major = Environment.OSVersion.Version.Major;
         if(major > 6 || (major >= 6 && Environment.OSVersion.Version.Minor >= 1))
         {
             Windows7OrAbove = true;
             TaskbarInformation = new TaskbarItemInfo();
         }
     }
     StartRunAsync();
     Timer.Start();
 }
コード例 #46
0
 protected override void OnActualWindowChanged(Window oldWindow) {
     if(oldWindow != null)
         oldWindow.SizeChanged -= OnWindowSizeChanged;
     Window window = ActualWindow;
     if(window == null) {
         BindingOperations.ClearBinding(this, WindowItemInfoProperty);
         ItemInfo = new TaskbarItemInfo();
         return;
     }
     if(window.TaskbarItemInfo == null) {
         window.TaskbarItemInfo = ItemInfo;
     } else {
         window.TaskbarItemInfo.ProgressState = ItemInfo.ProgressState;
         window.TaskbarItemInfo.ProgressValue = ItemInfo.ProgressValue;
         window.TaskbarItemInfo.Description = ItemInfo.Description;
         window.TaskbarItemInfo.Overlay = ItemInfo.Overlay;
         window.TaskbarItemInfo.ThumbButtonInfos = ItemInfo.ThumbButtonInfos;
         window.TaskbarItemInfo.ThumbnailClipMargin = ItemInfo.ThumbnailClipMargin;
         ItemInfo = window.TaskbarItemInfo;
     }
     BindingOperations.SetBinding(this, WindowItemInfoProperty, new Binding("TaskbarItemInfo") { Source = window, Mode = BindingMode.TwoWay, UpdateSourceTrigger = UpdateSourceTrigger.PropertyChanged });
     window.SizeChanged -= OnWindowSizeChanged;
     window.SizeChanged += OnWindowSizeChanged;
     OnWindowSizeChanged(window, null);
 }
コード例 #47
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 8 "..\..\MainWindow.xaml"
                ((Reproductor_de_Musica.MainWindow)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.Window_Closing);

            #line default
            #line hidden
                return;

            case 2:
                this.taskBarItemInfo = ((System.Windows.Shell.TaskbarItemInfo)(target));
                return;

            case 3:

            #line 20 "..\..\MainWindow.xaml"
                ((System.Windows.Shell.ThumbButtonInfo)(target)).Click += new System.EventHandler(this.ThumbButtonInfo_Anterior);

            #line default
            #line hidden
                return;

            case 4:

            #line 26 "..\..\MainWindow.xaml"
                ((System.Windows.Shell.ThumbButtonInfo)(target)).Click += new System.EventHandler(this.ThumbButtonInfo_Pause);

            #line default
            #line hidden
                return;

            case 5:

            #line 34 "..\..\MainWindow.xaml"
                ((System.Windows.Shell.ThumbButtonInfo)(target)).Click += new System.EventHandler(this.ThumbButtonInfo_Siguiente);

            #line default
            #line hidden
                return;

            case 6:
                this.Border1 = ((System.Windows.Controls.Border)(target));
                return;

            case 7:
                this.Border2 = ((System.Windows.Controls.Border)(target));
                return;

            case 8:
                this.Border3 = ((System.Windows.Controls.Border)(target));
                return;

            case 9:
                this.WrapPanel_Principal = ((System.Windows.Controls.WrapPanel)(target));

            #line 51 "..\..\MainWindow.xaml"
                this.WrapPanel_Principal.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.WrapPanel_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 10:

            #line 52 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Notification_Click);

            #line default
            #line hidden
                return;

            case 11:
                this.Button_Minus = ((System.Windows.Controls.Button)(target));

            #line 55 "..\..\MainWindow.xaml"
                this.Button_Minus.Click += new System.Windows.RoutedEventHandler(this.ButtonMinimize_Click);

            #line default
            #line hidden
                return;

            case 12:
                this.Button_X = ((System.Windows.Controls.Button)(target));

            #line 58 "..\..\MainWindow.xaml"
                this.Button_X.Click += new System.Windows.RoutedEventHandler(this.ButtonX_Click);

            #line default
            #line hidden
                return;

            case 13:
                this.StackPanel_Principal = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 14:
                this.Rectangle_Barra = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 15:
                this.Image_Add = ((System.Windows.Controls.Image)(target));

            #line 66 "..\..\MainWindow.xaml"
                this.Image_Add.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.TextBlock_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 16:
                this.TextBlock_Add = ((System.Windows.Controls.TextBlock)(target));

            #line 67 "..\..\MainWindow.xaml"
                this.TextBlock_Add.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.TextBlock_MouseLeftButtonDown);

            #line default
            #line hidden

            #line 67 "..\..\MainWindow.xaml"
                this.TextBlock_Add.MouseLeave += new System.Windows.Input.MouseEventHandler(this.TextBlock_Add_MouseLeave);

            #line default
            #line hidden

            #line 67 "..\..\MainWindow.xaml"
                this.TextBlock_Add.MouseEnter += new System.Windows.Input.MouseEventHandler(this.TextBlock_Add_MouseEnter);

            #line default
            #line hidden

            #line 67 "..\..\MainWindow.xaml"
                this.TextBlock_Add.MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.TextBlock_Add_MouseLeftButtonUp);

            #line default
            #line hidden
                return;

            case 17:
                this.Rectangle_Barra1 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 18:
                this.Image_PlayList = ((System.Windows.Controls.Image)(target));

            #line 77 "..\..\MainWindow.xaml"
                this.Image_PlayList.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.TextBlock_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 19:
                this.TextBlock_PlayList = ((System.Windows.Controls.TextBlock)(target));

            #line 78 "..\..\MainWindow.xaml"
                this.TextBlock_PlayList.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.TextBlock_MouseLeftButtonDown);

            #line default
            #line hidden

            #line 78 "..\..\MainWindow.xaml"
                this.TextBlock_PlayList.MouseLeave += new System.Windows.Input.MouseEventHandler(this.TextBlock_Add_MouseLeave);

            #line default
            #line hidden

            #line 78 "..\..\MainWindow.xaml"
                this.TextBlock_PlayList.MouseEnter += new System.Windows.Input.MouseEventHandler(this.TextBlock_Add_MouseEnter);

            #line default
            #line hidden

            #line 78 "..\..\MainWindow.xaml"
                this.TextBlock_PlayList.MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.TextBlock_Add_MouseLeftButtonUp);

            #line default
            #line hidden
                return;

            case 20:
                this.Rectangle_Barra2 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 21:
                this.Image_Favorite = ((System.Windows.Controls.Image)(target));

            #line 84 "..\..\MainWindow.xaml"
                this.Image_Favorite.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.TextBlock_Favorite_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 22:
                this.TextBlock_Favorite = ((System.Windows.Controls.TextBlock)(target));

            #line 85 "..\..\MainWindow.xaml"
                this.TextBlock_Favorite.MouseLeave += new System.Windows.Input.MouseEventHandler(this.TextBlock_Add_MouseLeave);

            #line default
            #line hidden

            #line 85 "..\..\MainWindow.xaml"
                this.TextBlock_Favorite.MouseEnter += new System.Windows.Input.MouseEventHandler(this.TextBlock_Add_MouseEnter);

            #line default
            #line hidden

            #line 85 "..\..\MainWindow.xaml"
                this.TextBlock_Favorite.MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.TextBlock_Add_MouseLeftButtonUp);

            #line default
            #line hidden

            #line 85 "..\..\MainWindow.xaml"
                this.TextBlock_Favorite.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.TextBlock_Favorite_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 23:
                this.Rectangle_Barra3 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 24:
                this.Image_Ajuste = ((System.Windows.Controls.Image)(target));

            #line 90 "..\..\MainWindow.xaml"
                this.Image_Ajuste.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.TextBox_Ajuste_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 25:
                this.TextBlock_Ajuste = ((System.Windows.Controls.TextBlock)(target));

            #line 91 "..\..\MainWindow.xaml"
                this.TextBlock_Ajuste.MouseLeave += new System.Windows.Input.MouseEventHandler(this.TextBlock_Add_MouseLeave);

            #line default
            #line hidden

            #line 91 "..\..\MainWindow.xaml"
                this.TextBlock_Ajuste.MouseEnter += new System.Windows.Input.MouseEventHandler(this.TextBlock_Add_MouseEnter);

            #line default
            #line hidden

            #line 91 "..\..\MainWindow.xaml"
                this.TextBlock_Ajuste.MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.TextBlock_Add_MouseLeftButtonUp);

            #line default
            #line hidden

            #line 91 "..\..\MainWindow.xaml"
                this.TextBlock_Ajuste.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.TextBox_Ajuste_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 26:
                this.Rectangle_Barra5 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 27:
                this.Image_Streamer = ((System.Windows.Controls.Image)(target));

            #line 96 "..\..\MainWindow.xaml"
                this.Image_Streamer.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.TextBox_Streamer_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 28:
                this.TextBlock_Streamer = ((System.Windows.Controls.TextBlock)(target));

            #line 97 "..\..\MainWindow.xaml"
                this.TextBlock_Streamer.MouseLeave += new System.Windows.Input.MouseEventHandler(this.TextBlock_Add_MouseLeave);

            #line default
            #line hidden

            #line 97 "..\..\MainWindow.xaml"
                this.TextBlock_Streamer.MouseEnter += new System.Windows.Input.MouseEventHandler(this.TextBlock_Add_MouseEnter);

            #line default
            #line hidden

            #line 97 "..\..\MainWindow.xaml"
                this.TextBlock_Streamer.MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.TextBlock_Add_MouseLeftButtonUp);

            #line default
            #line hidden

            #line 97 "..\..\MainWindow.xaml"
                this.TextBlock_Streamer.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.TextBox_Streamer_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 29:
                this.Rectangle_Barra6 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 30:
                this.Image_Download = ((System.Windows.Controls.Image)(target));

            #line 102 "..\..\MainWindow.xaml"
                this.Image_Download.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.TextBlock_Download_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

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

            #line 103 "..\..\MainWindow.xaml"
                this.TextBlock_Download.MouseLeave += new System.Windows.Input.MouseEventHandler(this.TextBlock_Add_MouseLeave);

            #line default
            #line hidden

            #line 103 "..\..\MainWindow.xaml"
                this.TextBlock_Download.MouseEnter += new System.Windows.Input.MouseEventHandler(this.TextBlock_Add_MouseEnter);

            #line default
            #line hidden

            #line 103 "..\..\MainWindow.xaml"
                this.TextBlock_Download.MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.TextBlock_Add_MouseLeftButtonUp);

            #line default
            #line hidden

            #line 103 "..\..\MainWindow.xaml"
                this.TextBlock_Download.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.TextBlock_Download_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 32:
                this.WrapPanel_Secundaria = ((System.Windows.Controls.WrapPanel)(target));
                return;

            case 33:
                this.IMG_Aleatorio = ((System.Windows.Controls.Image)(target));

            #line 111 "..\..\MainWindow.xaml"
                this.IMG_Aleatorio.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Image_MouseLeftButtonDown_Aleatorio);

            #line default
            #line hidden
                return;

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

            #line 117 "..\..\MainWindow.xaml"
                this.Anterior.MouseEnter += new System.Windows.Input.MouseEventHandler(this.Image_MouseEnter);

            #line default
            #line hidden

            #line 117 "..\..\MainWindow.xaml"
                this.Anterior.MouseLeave += new System.Windows.Input.MouseEventHandler(this.Image_MouseLeave);

            #line default
            #line hidden

            #line 117 "..\..\MainWindow.xaml"
                this.Anterior.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Image_MouseLeftButtonDown);

            #line default
            #line hidden

            #line 117 "..\..\MainWindow.xaml"
                this.Anterior.MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.Image_MouseLeftButtonUp);

            #line default
            #line hidden
                return;

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

            #line 124 "..\..\MainWindow.xaml"
                this.Button_Reproductor.Click += new System.Windows.RoutedEventHandler(this.Button_Pause_Click);

            #line default
            #line hidden
                return;

            case 36:
                this.Siguiente = ((System.Windows.Controls.Image)(target));

            #line 131 "..\..\MainWindow.xaml"
                this.Siguiente.MouseEnter += new System.Windows.Input.MouseEventHandler(this.Image_MouseEnter);

            #line default
            #line hidden

            #line 131 "..\..\MainWindow.xaml"
                this.Siguiente.MouseLeave += new System.Windows.Input.MouseEventHandler(this.Image_MouseLeave);

            #line default
            #line hidden

            #line 131 "..\..\MainWindow.xaml"
                this.Siguiente.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Image_MouseLeftButtonDown);

            #line default
            #line hidden

            #line 131 "..\..\MainWindow.xaml"
                this.Siguiente.MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.Image_MouseLeftButtonUp);

            #line default
            #line hidden
                return;

            case 37:
                this.Repetir = ((System.Windows.Controls.Image)(target));

            #line 136 "..\..\MainWindow.xaml"
                this.Repetir.MouseEnter += new System.Windows.Input.MouseEventHandler(this.Image_MouseEnter);

            #line default
            #line hidden

            #line 136 "..\..\MainWindow.xaml"
                this.Repetir.MouseLeave += new System.Windows.Input.MouseEventHandler(this.Image_MouseLeave);

            #line default
            #line hidden

            #line 136 "..\..\MainWindow.xaml"
                this.Repetir.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Image_MouseLeftButtonDown);

            #line default
            #line hidden

            #line 136 "..\..\MainWindow.xaml"
                this.Repetir.MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.Image_MouseLeftButtonUp);

            #line default
            #line hidden
                return;

            case 38:
                this.Slider_Volumen = ((System.Windows.Controls.Slider)(target));

            #line 145 "..\..\MainWindow.xaml"
                this.Slider_Volumen.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.Slider_ValueChanged);

            #line default
            #line hidden

            #line 145 "..\..\MainWindow.xaml"
                this.Slider_Volumen.MouseMove += new System.Windows.Input.MouseEventHandler(this.Slider_MouseMove);

            #line default
            #line hidden
                return;

            case 39:
                this.Canvas_Music = ((System.Windows.Controls.Canvas)(target));
                return;

            case 40:
                this.Name_Music = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 41:
                this.TextBlock_Author_Name = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 42:
                this.Slider_Carga = ((System.Windows.Controls.Slider)(target));

            #line 153 "..\..\MainWindow.xaml"
                this.Slider_Carga.MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.Slider_Carga_MouseLeftButtonUp);

            #line default
            #line hidden

            #line 153 "..\..\MainWindow.xaml"
                this.Slider_Carga.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.Slider_Carga_ValueChanged);

            #line default
            #line hidden
                return;

            case 43:
                this.Text_MinLength = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 44:
                this.Text_MaxLength = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 45:
                this.DataGridP = ((System.Windows.Controls.DataGrid)(target));

            #line 158 "..\..\MainWindow.xaml"
                this.DataGridP.LoadingRow += new System.EventHandler <System.Windows.Controls.DataGridRowEventArgs>(this.DataGrid_LoadingRow);

            #line default
            #line hidden

            #line 159 "..\..\MainWindow.xaml"
                this.DataGridP.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.DataGridP_MouseDoubleClick);

            #line default
            #line hidden

            #line 161 "..\..\MainWindow.xaml"
                this.DataGridP.PreviewMouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.DataGridP_MouseLeftButtonDown);

            #line default
            #line hidden

            #line 162 "..\..\MainWindow.xaml"
                this.DataGridP.PreviewKeyDown += new System.Windows.Input.KeyEventHandler(this.DataGridP_PreviewKeyDown);

            #line default
            #line hidden

            #line 162 "..\..\MainWindow.xaml"
                this.DataGridP.Drop += new System.Windows.DragEventHandler(this.ListBox_Drop);

            #line default
            #line hidden
                return;

            case 46:
                this.IMG_Favorite = ((System.Windows.Controls.Image)(target));

            #line 224 "..\..\MainWindow.xaml"
                this.IMG_Favorite.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Image_Favorite_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 47:
                this.TextBlock_Info_PlayList = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 48:
                this.Button_Erase = ((System.Windows.Controls.Button)(target));

            #line 230 "..\..\MainWindow.xaml"
                this.Button_Erase.Click += new System.Windows.RoutedEventHandler(this.Button_Delete_All_Click);

            #line default
            #line hidden
                return;

            case 49:
                this.Image_Song = ((System.Windows.Controls.Image)(target));
                return;
            }
            this._contentLoaded = true;
        }
コード例 #48
0
 public TaskbarButtonService() {
     SetInternalItems(this, new FreezableCollection<TaskbarThumbButtonInfo>());
     ItemInfo = new TaskbarItemInfo();
 }
コード例 #49
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.window = ((Launcher.MainWindow)(target));
                return;

            case 2:
                this.TaskbarProgress = ((System.Windows.Shell.TaskbarItemInfo)(target));
                return;

            case 3:
                this.TaskbarPlay = ((System.Windows.Shell.ThumbButtonInfo)(target));

            #line 12 "..\..\MainWindow.xaml"
                this.TaskbarPlay.Click += new System.EventHandler(this.TaskbarPlay_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.MainGrid = ((System.Windows.Controls.Grid)(target));

            #line 16 "..\..\MainWindow.xaml"
                this.MainGrid.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Grid_MouseDown);

            #line default
            #line hidden
                return;

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

            #line 48 "..\..\MainWindow.xaml"
                this.btn_close.Click += new System.Windows.RoutedEventHandler(this.btn_close_Click);

            #line default
            #line hidden
                return;

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

            #line 56 "..\..\MainWindow.xaml"
                this.btn_min.Click += new System.Windows.RoutedEventHandler(this.btn_min_Click);

            #line default
            #line hidden
                return;

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

            #line 64 "..\..\MainWindow.xaml"
                this.btn_settings.Click += new System.Windows.RoutedEventHandler(this.btn_settings_Click);

            #line default
            #line hidden
                return;

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

            #line 72 "..\..\MainWindow.xaml"
                this.version.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.version_MouseDown);

            #line default
            #line hidden
                return;

            case 9:
                this.news_box = ((Launcher.NewsLoaderControl)(target));
                return;

            case 10:
                this.contentNewsLoadIndicator = ((System.Windows.Controls.Label)(target));
                return;

            case 11:
                this.newsLoadIndicator = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 12:
                this.NewsBox = ((System.Windows.Controls.RichTextBox)(target));
                return;

            case 14:
                this.DownloadBar = ((System.Windows.Controls.Grid)(target));
                return;

            case 15:
                this.labelprogress = ((System.Windows.Controls.Label)(target));
                return;

            case 16:
                this.totalProgressGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 17:
                this.progress = ((System.Windows.Controls.ProgressBar)(target));
                return;

            case 18:
                this.currentProgressGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 19:
                this.progress_file = ((System.Windows.Controls.ProgressBar)(target));
                return;

            case 20:
                this.labelmsg = ((System.Windows.Controls.Label)(target));
                return;

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

            #line 140 "..\..\MainWindow.xaml"
                this.btn_play.Click += new System.Windows.RoutedEventHandler(this.btn_play_Click);

            #line default
            #line hidden
                return;

            case 22:
                this.link_main = ((System.Windows.Controls.Button)(target));

            #line 141 "..\..\MainWindow.xaml"
                this.link_main.Click += new System.Windows.RoutedEventHandler(this.link_main_Click);

            #line default
            #line hidden
                return;

            case 23:
                this.link_cabinet = ((System.Windows.Controls.Button)(target));

            #line 142 "..\..\MainWindow.xaml"
                this.link_cabinet.Click += new System.Windows.RoutedEventHandler(this.link_cabinet_Click);

            #line default
            #line hidden
                return;

            case 24:
                this.link_registration = ((System.Windows.Controls.Button)(target));

            #line 143 "..\..\MainWindow.xaml"
                this.link_registration.Click += new System.Windows.RoutedEventHandler(this.link_registration_Click);

            #line default
            #line hidden
                return;

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

            #line 144 "..\..\MainWindow.xaml"
                this.link_social.Click += new System.Windows.RoutedEventHandler(this.link_social_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
コード例 #50
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.prg = ((System.Windows.Shell.TaskbarItemInfo)(target));
                return;

            case 2:

            #line 12 "..\..\MainWindow.xaml"
                ((System.Windows.Shell.ThumbButtonInfo)(target)).Click += new System.EventHandler(this.ThumbButtonInfo_Click);

            #line default
            #line hidden
                return;

            case 3:

            #line 13 "..\..\MainWindow.xaml"
                ((System.Windows.Shell.ThumbButtonInfo)(target)).Click += new System.EventHandler(this.ThumbButtonInfo_Click_1);

            #line default
            #line hidden
                return;

            case 4:

            #line 14 "..\..\MainWindow.xaml"
                ((System.Windows.Shell.ThumbButtonInfo)(target)).Click += new System.EventHandler(this.ThumbButtonInfo_Click_2);

            #line default
            #line hidden
                return;

            case 5:

            #line 21 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click);

            #line default
            #line hidden
                return;

            case 6:

            #line 24 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_2);

            #line default
            #line hidden
                return;

            case 7:

            #line 37 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_1);

            #line default
            #line hidden
                return;

            case 8:
                this.PB = ((System.Windows.Controls.ProgressBar)(target));

            #line 50 "..\..\MainWindow.xaml"
                this.PB.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.PB_MouseDoubleClick);

            #line default
            #line hidden

            #line 50 "..\..\MainWindow.xaml"
                this.PB.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.PB_ValueChanged);

            #line default
            #line hidden
                return;

            case 9:
                this.aMedia = ((System.Windows.Controls.MediaElement)(target));

            #line 51 "..\..\MainWindow.xaml"
                this.aMedia.MediaOpened += new System.Windows.RoutedEventHandler(this.aMedia_MediaOpened);

            #line default
            #line hidden
                return;

            case 10:
                this.slider_vol = ((System.Windows.Controls.Slider)(target));

            #line 61 "..\..\MainWindow.xaml"
                this.slider_vol.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.Slider_ValueChanged);

            #line default
            #line hidden
                return;

            case 11:
                this.backwardbtn = ((System.Windows.Controls.Button)(target));

            #line 62 "..\..\MainWindow.xaml"
                this.backwardbtn.Click += new System.Windows.RoutedEventHandler(this.backwardbtn_Click);

            #line default
            #line hidden
                return;

            case 12:
                this.forwardbtn = ((System.Windows.Controls.Button)(target));

            #line 83 "..\..\MainWindow.xaml"
                this.forwardbtn.Click += new System.Windows.RoutedEventHandler(this.forwardbtn_Click);

            #line default
            #line hidden
                return;

            case 13:
                this.lbl = ((System.Windows.Controls.Label)(target));
                return;

            case 14:
                this.lbl2 = ((System.Windows.Controls.Label)(target));
                return;

            case 15:
                this.lstbx = ((System.Windows.Controls.ListBox)(target));

            #line 98 "..\..\MainWindow.xaml"
                this.lstbx.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.lstbx_SelectionChanged);

            #line default
            #line hidden
                return;

            case 16:

            #line 99 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
コード例 #51
0
ファイル: SetupWindow.cs プロジェクト: OpenDataSpace/CmisSync
        /// <summary>
        /// Constructor.
        /// </summary>
        public SetupWindow ()
        {
            // Window properties.
            Title      = CmisSync.Properties_Resources.AddARemoteFolder;
            Width      = 640;
            Height     = 440;
            ResizeMode = ResizeMode.NoResize;
            Background = new SolidColorBrush (Colors.WhiteSmoke);
            Icon       = UIHelpers.GetImageSource("app", "ico");
            WindowStartupLocation = WindowStartupLocation.CenterScreen;
            Content    = ContentCanvas;
            Closing += Close;

            // Taskbar
            TaskbarItemInfo = new TaskbarItemInfo()
            {
                Description = Properties_Resources.ApplicationName
            };

            if (useXAML)
            {
                Padding = new Thickness(0);
                LoadSetup();
            }
            else
            {
                CreateSetup();
            }
        }
コード例 #52
0
ファイル: RunWindow.xaml.cs プロジェクト: dianatle/XTMF
 private void StartRun(XTMFRun run, string runName)
 {
     Run = run;
     Dispatcher.BeginInvoke(new Action(() =>
         {
             MainWindow.Us.SetWindowName(this, "Run - " + runName);
             RunNameLabel.Text = runName;
         }));
     ProgressReports = Run.Configuration.ProgressReports;
     ProgressReports.ListChanged += new ListChangedEventHandler(ProgressReports_ListChanged);
     ProgressReports.BeforeRemove += new EventHandler<ListChangedEventArgs>(ProgressReports_BeforeRemove);
     SubProgressBars.ListChanged += new ListChangedEventHandler(SubProgressBars_ListChanged);
     SubProgressBars.BeforeRemove += new EventHandler<ListChangedEventArgs>(SubProgressBars_BeforeRemove);
     Run.RunComplete += Run_RunComplete;
     Run.RunStarted += Run_RunStarted;
     Run.RuntimeError += Run_RuntimeError;
     Run.RuntimeValidationError += Run_RuntimeValidationError;
     Run.ValidationStarting += Run_ValidationStarting;
     Run.ValidationError += Run_ValidationError;
     RunDirectory = Run.RunDirectory;
     Timer = new DispatcherTimer();
     Timer.Interval = TimeSpan.FromMilliseconds(1000 / 30);
     Timer.Tick += new EventHandler(Timer_Tick);
     if (Environment.OSVersion.Platform == PlatformID.Win32NT)
     {
         var major = Environment.OSVersion.Version.Major;
         if (major > 6 || (major >= 6 && Environment.OSVersion.Version.Minor >= 1))
         {
             Windows7OrAbove = true;
             MainWindow.Us.TaskbarItemInfo = TaskbarInformation = new TaskbarItemInfo();
             TaskbarInformation.ProgressState = TaskbarItemProgressState.Normal;
             TaskbarInformation.ProgressValue = 0;
         }
     }
     this.ConsoleOutput.DataContext = new ConsoleOutputController(this);
     this.ConsoleBorder.DataContext = this.ConsoleOutput.DataContext;
     StartRunAsync();
     Timer.Start();
 }
コード例 #53
0
ファイル: Dialog.cs プロジェクト: wangjianglin/dotnet-core
 public static void SetTaskbarItemInfo(DependencyObject dc, TaskbarItemInfo value)
 {
     dc.SetValue(TaskbarItemInfoProperty, value);
 }