コード例 #1
0
ファイル: App.xaml.cs プロジェクト: ChrisCross67/Messenger
 private void Application_Startup(object sender, StartupEventArgs e)
 {
     try
     {
         MainWindow app = new MainWindow();
         app.Show();
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }
コード例 #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.GlavnoOkno = ((Messenger.MainWindow)(target));
                return;

            case 2:
                this.GlavniGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 3:
                this.Header = ((System.Windows.Controls.Grid)(target));
                return;

            case 4:
                this.Profil = ((Messenger.ProfileControll)(target));
                return;

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

            case 6:
                this.Body = ((System.Windows.Controls.Grid)(target));
                return;

            case 7:
                this.Friends = ((System.Windows.Controls.Grid)(target));
                return;

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

            case 9:
                this.Chat = ((System.Windows.Controls.Grid)(target));
                return;

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

            #line 80 "..\..\..\Okna\GlavnoOkno.xaml"
                this.lbl_sendMessage.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.SendMessageEvent);

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

            case 2:
                this.DodaniPrijaltelji = ((System.Windows.Controls.ListView)(target));
                return;
            }
            this._contentLoaded = true;
        }
コード例 #4
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.GlavnoOkno = ((Messenger.MainWindow)(target));

            #line 10 "..\..\GlavnoOkno.xaml"
                this.GlavnoOkno.KeyDown += new System.Windows.Input.KeyEventHandler(this.KeyPressed);

            #line default
            #line hidden

            #line 10 "..\..\GlavnoOkno.xaml"
                this.GlavnoOkno.Closing += new System.ComponentModel.CancelEventHandler(this.GlavnoOkno_Closing);

            #line default
            #line hidden
                return;

            case 2:
                this.GlavniGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 3:
                this.Header = ((System.Windows.Controls.Grid)(target));
                return;

            case 4:
                this.Profil = ((Messenger.ProfileControll)(target));
                return;

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

            case 6:

            #line 44 "..\..\GlavnoOkno.xaml"
                ((System.Windows.Controls.Label)(target)).MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.LogOutEvent);

            #line default
            #line hidden
                return;

            case 7:
                this.Body = ((System.Windows.Controls.Grid)(target));
                return;

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

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

            case 10:
                this.menu_status_icon = ((System.Windows.Shapes.Ellipse)(target));
                return;

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

            #line 73 "..\..\GlavnoOkno.xaml"
                this.menu_status_online.Click += new System.Windows.RoutedEventHandler(this.ChangeStateToOnlineEvent);

            #line default
            #line hidden
                return;

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

            #line 79 "..\..\GlavnoOkno.xaml"
                this.menu_status_away.Click += new System.Windows.RoutedEventHandler(this.ChangeStateToAwayEvent);

            #line default
            #line hidden
                return;

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

            #line 85 "..\..\GlavnoOkno.xaml"
                this.menu_status_doNotDisturb.Click += new System.Windows.RoutedEventHandler(this.ChangeStateToDoNotDisturbEvent);

            #line default
            #line hidden
                return;

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

            #line 91 "..\..\GlavnoOkno.xaml"
                this.menu_status_hidden.Click += new System.Windows.RoutedEventHandler(this.ChangeStateToHiddenEvent);

            #line default
            #line hidden
                return;

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

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

            #line 103 "..\..\GlavnoOkno.xaml"
                this.OrderAsc.Click += new System.Windows.RoutedEventHandler(this.OrderAscEvent);

            #line default
            #line hidden
                return;

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

            #line 108 "..\..\GlavnoOkno.xaml"
                this.OrderDesc.Click += new System.Windows.RoutedEventHandler(this.OrderDescEvent);

            #line default
            #line hidden
                return;

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

            #line 114 "..\..\GlavnoOkno.xaml"
                this.menu_addFriend.Click += new System.Windows.RoutedEventHandler(this.OpenFriendsSettings);

            #line default
            #line hidden
                return;

            case 19:
                this.Search = ((System.Windows.Controls.TextBox)(target));

            #line 123 "..\..\GlavnoOkno.xaml"
                this.Search.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.SpremeniTextIskanja);

            #line default
            #line hidden
                return;

            case 20:
                this.DodaniPrijaltelji = ((System.Windows.Controls.ListView)(target));
                return;

            case 21:
                this.Chat = ((System.Windows.Controls.Grid)(target));
                return;

            case 22:
                this.list_messages = ((System.Windows.Controls.ListView)(target));
                return;

            case 23:
                this.usercontrollSendMessage = ((Messenger.SendMessage)(target));
                return;
            }
            this._contentLoaded = true;
        }
コード例 #5
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.This = ((Messenger.MainWindow)(target));
     
     #line 18 "..\..\MainWindow.xaml"
     this.This.Closing += new System.ComponentModel.CancelEventHandler(this.Window_Closing);
     
     #line default
     #line hidden
     
     #line 22 "..\..\MainWindow.xaml"
     this.This.Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);
     
     #line default
     #line hidden
     return;
     case 2:
     
     #line 144 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.OnThemeSettingsClicked);
     
     #line default
     #line hidden
     return;
     case 3:
     this.flyoutsControl = ((MahApps.Metro.Controls.Flyout)(target));
     return;
     case 4:
     this.tb = ((Hardcodet.Wpf.TaskbarNotification.TaskbarIcon)(target));
     return;
     case 5:
     
     #line 255 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.ComboBox)(target)).DropDownOpened += new System.EventHandler(this.OnComboBoxDropDownOpened);
     
     #line default
     #line hidden
     
     #line 261 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.ComboBox)(target)).SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.OnComboBoxSelectionChanged);
     
     #line default
     #line hidden
     return;
     case 6:
     this.ListBoxMemebers = ((System.Windows.Controls.ListBox)(target));
     return;
     }
     this._contentLoaded = true;
 }