Example #1
0
 private void SetMaxID(string id)
 {
     foreach (var group in flc_ImgList.Children)
     {
         DevExpress.Xpf.LayoutControl.GroupBox g = group as DevExpress.Xpf.LayoutControl.GroupBox;
         if (g.Tag != null && g.Tag.ToString() == id)
         {
             g.State = GroupBoxState.Maximized;
         }
     }
 }
Example #2
0
 private string GetMaxID()
 {
     foreach (var group in flc_ImgList.Children)
     {
         DevExpress.Xpf.LayoutControl.GroupBox g = group as DevExpress.Xpf.LayoutControl.GroupBox;
         if (g != null && g.State == GroupBoxState.Maximized)
         {
             return(g.Tag == null ? "" : g.Tag.ToString());
         }
     }
     return("");
 }
        void WorkAchievement_Loaded(object sender, RoutedEventArgs e)
        {
            AddItem();

            if (flowLayout.ItemsSource != null && flowLayout.Children.Count != 0)
            {
                DevExpress.Xpf.LayoutControl.GroupBox groupbox = flowLayout.Children[0] as DevExpress.Xpf.LayoutControl.GroupBox;
                if (groupbox != null)
                {
                    groupbox.State = GroupBoxState.Maximized;
                }
            }
        }
        private void GroupBox_StateChanged(object sender, DevExpress.Xpf.Core.ValueChangedEventArgs <GroupBoxState> e)
        {
            DevExpress.Xpf.LayoutControl.GroupBox group = sender as DevExpress.Xpf.LayoutControl.GroupBox;
            StaticItem       item = group.DataContext as StaticItem;
            IStatisticObject uc   = null;

            if (item != null && item.UC != null)
            {
                uc = item.UC as IStatisticObject;
            }
            if (group.State == GroupBoxState.Maximized)
            {
                uc.ShowLegend = true;
            }
            if (group.State == GroupBoxState.Normal)
            {
                uc.ShowLegend = false;
            }
        }
Example #5
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 5 "..\..\..\WxzForms\FSignIn.xaml"
                ((StudentsManagement.WxzForms.FSignIn)(target)).MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Window_MouseDown);

            #line default
            #line hidden
                return;

            case 2:
                this.menu = ((DevExpress.Xpf.WindowsUI.HamburgerMenu)(target));

            #line 8 "..\..\..\WxzForms\FSignIn.xaml"
                this.menu.SelectedItemChanged += new System.EventHandler <DevExpress.Xpf.WindowsUI.HamburgerMenuSelectedItemChangedEventArgs>(this.HamburgerMenu_SelectedItemChanged_1);

            #line default
            #line hidden
                return;

            case 3:
                this.frame = ((DevExpress.Xpf.WindowsUI.NavigationFrame)(target));
                return;

            case 4:
                this.service = ((DevExpress.Xpf.WindowsUI.Navigation.FrameNavigationService)(target));
                return;

            case 5:
                this.Group_SignIn = ((DevExpress.Xpf.LayoutControl.GroupBox)(target));
                return;

            case 6:
                this.tbx_SignIn_Username = ((DevExpress.Xpf.Editors.TextEdit)(target));
                return;

            case 7:
                this.tbx_SignIn_Password = ((DevExpress.Xpf.Editors.PasswordBoxEdit)(target));
                return;

            case 8:
                this.btn_SignIn_Ok = ((DevExpress.Xpf.Core.SimpleButton)(target));

            #line 37 "..\..\..\WxzForms\FSignIn.xaml"
                this.btn_SignIn_Ok.Click += new System.Windows.RoutedEventHandler(this.btn_SignIn_Ok_Click);

            #line default
            #line hidden
                return;

            case 9:
                this.btn_SignIn_Clear = ((DevExpress.Xpf.Core.SimpleButton)(target));

            #line 38 "..\..\..\WxzForms\FSignIn.xaml"
                this.btn_SignIn_Clear.Click += new System.Windows.RoutedEventHandler(this.btn_SignIn_Clear_Click);

            #line default
            #line hidden
                return;

            case 10:
                this.Group_SignUp = ((DevExpress.Xpf.LayoutControl.GroupBox)(target));
                return;

            case 11:
                this.tbx_SignUp_Username = ((DevExpress.Xpf.Editors.TextEdit)(target));
                return;

            case 12:
                this.tbx_SignUp_Password = ((DevExpress.Xpf.Editors.PasswordBoxEdit)(target));
                return;

            case 13:
                this.tbx_SignUp_RePassword = ((DevExpress.Xpf.Editors.PasswordBoxEdit)(target));
                return;

            case 14:
                this.btn_SignUp_Ok = ((DevExpress.Xpf.Core.SimpleButton)(target));

            #line 61 "..\..\..\WxzForms\FSignIn.xaml"
                this.btn_SignUp_Ok.Click += new System.Windows.RoutedEventHandler(this.btn_SignUp_Ok_Click);

            #line default
            #line hidden
                return;

            case 15:
                this.btn_SignUp_Clear = ((DevExpress.Xpf.Core.SimpleButton)(target));

            #line 62 "..\..\..\WxzForms\FSignIn.xaml"
                this.btn_SignUp_Clear.Click += new System.Windows.RoutedEventHandler(this.btn_SignUp_Clear_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Example #6
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.platform = ((MsgTransfer.MainWindow)(target));
     
     #line 8 "..\..\MainWindow.xaml"
     this.platform.LayoutUpdated += new System.EventHandler(this.platform_LayoutUpdated);
     
     #line default
     #line hidden
     
     #line 8 "..\..\MainWindow.xaml"
     this.platform.Loaded += new System.Windows.RoutedEventHandler(this.platform_Loaded);
     
     #line default
     #line hidden
     return;
     case 2:
     this.tabControl = ((System.Windows.Controls.TabControl)(target));
     return;
     case 3:
     this.oderlistgrid = ((System.Windows.Controls.Grid)(target));
     return;
     case 4:
     this.order = ((System.Windows.Controls.ListView)(target));
     return;
     case 5:
     this.taskinfo = ((System.Windows.Controls.Grid)(target));
     return;
     case 6:
     this.label = ((System.Windows.Controls.Label)(target));
     return;
     case 7:
     this.label1 = ((System.Windows.Controls.Label)(target));
     return;
     case 8:
     this.label1_Copy1 = ((System.Windows.Controls.Label)(target));
     return;
     case 9:
     this.label1_Copy2 = ((System.Windows.Controls.Label)(target));
     return;
     case 10:
     this.label1_Copy3 = ((System.Windows.Controls.Label)(target));
     return;
     case 11:
     this.label1_Copy4 = ((System.Windows.Controls.Label)(target));
     return;
     case 12:
     this.order1 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 13:
     this.order3 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 14:
     this.order4 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 15:
     this.order5 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 16:
     this.order6 = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 17:
     this.order7 = ((DevExpress.Xpf.LayoutControl.GroupBox)(target));
     return;
     case 18:
     this.workinglistgrid = ((System.Windows.Controls.Grid)(target));
     return;
     case 19:
     this.workinglist = ((System.Windows.Controls.ListView)(target));
     return;
     case 20:
     this.workingtaskinfo = ((System.Windows.Controls.Grid)(target));
     return;
     case 21:
     this.labe2 = ((System.Windows.Controls.Label)(target));
     return;
     case 22:
     this.labeworking1 = ((System.Windows.Controls.Label)(target));
     return;
     case 23:
     this.labeworking3 = ((System.Windows.Controls.Label)(target));
     return;
     case 24:
     this.labeworking4 = ((System.Windows.Controls.Label)(target));
     return;
     case 25:
     this.labeworking5 = ((System.Windows.Controls.Label)(target));
     return;
     case 26:
     this.labeworking6 = ((System.Windows.Controls.Label)(target));
     return;
     case 27:
     this.working1 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 28:
     this.working3 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 29:
     this.working4 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 30:
     this.working5 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 31:
     this.working6 = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 32:
     this.working7 = ((DevExpress.Xpf.LayoutControl.GroupBox)(target));
     return;
     case 33:
     this.donelistgrid = ((System.Windows.Controls.Grid)(target));
     return;
     case 34:
     this.donelist = ((System.Windows.Controls.ListView)(target));
     return;
     case 35:
     this.donetaskinfo = ((System.Windows.Controls.Grid)(target));
     return;
     case 36:
     this.labe3 = ((System.Windows.Controls.Label)(target));
     return;
     case 37:
     this.labedone1 = ((System.Windows.Controls.Label)(target));
     return;
     case 38:
     this.labedone3 = ((System.Windows.Controls.Label)(target));
     return;
     case 39:
     this.labedone4 = ((System.Windows.Controls.Label)(target));
     return;
     case 40:
     this.labedone5 = ((System.Windows.Controls.Label)(target));
     return;
     case 41:
     this.labedone6 = ((System.Windows.Controls.Label)(target));
     return;
     case 42:
     this.done1 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 43:
     this.done3 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 44:
     this.done4 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 45:
     this.done5 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 46:
     this.done6 = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 47:
     this.done7 = ((DevExpress.Xpf.LayoutControl.GroupBox)(target));
     return;
     case 48:
     this.mylistgrid = ((System.Windows.Controls.Grid)(target));
     return;
     case 49:
     this.mylist = ((System.Windows.Controls.ListView)(target));
     return;
     case 50:
     this.mytaskinfo = ((System.Windows.Controls.Grid)(target));
     return;
     case 51:
     this.my1 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 52:
     this.my3 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 53:
     this.my4 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 54:
     this.my5 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 55:
     this.my6 = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 56:
     this.my7 = ((DevExpress.Xpf.LayoutControl.GroupBox)(target));
     return;
     case 57:
     this.pubtask = ((System.Windows.Controls.Button)(target));
     
     #line 144 "..\..\MainWindow.xaml"
     this.pubtask.Click += new System.Windows.RoutedEventHandler(this.pubtask_Click);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
Example #7
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.platform = ((MsgTransfer.MainWindow)(target));

            #line 8 "..\..\MainWindow.xaml"
                this.platform.LayoutUpdated += new System.EventHandler(this.platform_LayoutUpdated);

            #line default
            #line hidden

            #line 8 "..\..\MainWindow.xaml"
                this.platform.Loaded += new System.Windows.RoutedEventHandler(this.platform_Loaded);

            #line default
            #line hidden
                return;

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

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

            case 4:
                this.order = ((System.Windows.Controls.ListView)(target));
                return;

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

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

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

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

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

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

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

            case 12:
                this.order1 = ((System.Windows.Controls.TextBlock)(target));
                return;

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

            case 14:
                this.order4 = ((System.Windows.Controls.TextBlock)(target));
                return;

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

            case 16:
                this.order6 = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 17:
                this.order7 = ((DevExpress.Xpf.LayoutControl.GroupBox)(target));
                return;

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

            case 19:
                this.workinglist = ((System.Windows.Controls.ListView)(target));
                return;

            case 20:
                this.workingtaskinfo = ((System.Windows.Controls.Grid)(target));
                return;

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

            case 22:
                this.labeworking1 = ((System.Windows.Controls.Label)(target));
                return;

            case 23:
                this.labeworking3 = ((System.Windows.Controls.Label)(target));
                return;

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

            case 25:
                this.labeworking5 = ((System.Windows.Controls.Label)(target));
                return;

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

            case 27:
                this.working1 = ((System.Windows.Controls.TextBlock)(target));
                return;

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

            case 29:
                this.working4 = ((System.Windows.Controls.TextBlock)(target));
                return;

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

            case 31:
                this.working6 = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 32:
                this.working7 = ((DevExpress.Xpf.LayoutControl.GroupBox)(target));
                return;

            case 33:
                this.donelistgrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 34:
                this.donelist = ((System.Windows.Controls.ListView)(target));
                return;

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

            case 36:
                this.labe3 = ((System.Windows.Controls.Label)(target));
                return;

            case 37:
                this.labedone1 = ((System.Windows.Controls.Label)(target));
                return;

            case 38:
                this.labedone3 = ((System.Windows.Controls.Label)(target));
                return;

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

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

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

            case 42:
                this.done1 = ((System.Windows.Controls.TextBlock)(target));
                return;

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

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

            case 45:
                this.done5 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 46:
                this.done6 = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 47:
                this.done7 = ((DevExpress.Xpf.LayoutControl.GroupBox)(target));
                return;

            case 48:
                this.mylistgrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 49:
                this.mylist = ((System.Windows.Controls.ListView)(target));
                return;

            case 50:
                this.mytaskinfo = ((System.Windows.Controls.Grid)(target));
                return;

            case 51:
                this.my1 = ((System.Windows.Controls.TextBlock)(target));
                return;

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

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

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

            case 55:
                this.my6 = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 56:
                this.my7 = ((DevExpress.Xpf.LayoutControl.GroupBox)(target));
                return;

            case 57:
                this.pubtask = ((System.Windows.Controls.Button)(target));

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

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }