Ejemplo n.º 1
0
    public bool CreatePanel()
    {
        if (m_panel != null)
        {
            return(true);
        }

        Action <UnityEngine.Object> onLoaded = (UnityEngine.Object asset) =>
        {
            if (asset == null)
            {
                return;
            }

            if (m_Status != PanelStatus.ASYNC_LOADING)
            {
                return;
            }

            m_panel = UnityEngine.Object.Instantiate(asset) as GameObject;
            if (m_panel == null)
            {
                Debug.LogWarning(string.Format("CreatePanel, the asset({0}) cannot be instantiated as a GameObject!!", m_ResPath));
                return;
            }

            m_Status = PanelStatus.READY;

            RectTransform rc = m_panel.transform as RectTransform;
            rc.SetParent(GetUIRoot().transform);
            rc.offsetMin = Vector2.zero;
            rc.offsetMax = Vector2.zero;
            m_panel.SetActive(m_bShow);

            OnCreate();

            if (m_bShow)
            {
                OnShow(m_bShow);
            }
        };

        if (m_bSyncLoad)
        {
            UnityEngine.Object asset = GameUtils.LoadResource(m_ResPath);
            if (asset == null)
            {
                return(false);
            }

            onLoaded(asset);
            return(true);
        }
        else
        {
            GameUtils.LoadResourceAsync(m_ResPath, onLoaded);
            m_Status = PanelStatus.ASYNC_LOADING;
            return(true);
        }
    }
        public void GetDescription()
        {
            PanelStatus panelStatusBattleship = PanelStatus.Empty;
            string      status = panelStatusBattleship.GetDescription <DescriptionAttribute>().Description;

            Assert.Equal(" ", status);
        }
Ejemplo n.º 3
0
        // ------------Added by Wei Guang Yan----------------
        // Radio-button-Click event on "Products"----Edit/Add product
        private void radioButton1_CheckedChanged(object sender, EventArgs e)
        {
            //this.panel14.SendToBack();
            //Show panel13
            //panelProductSuppliers.Hide(); 20190604
            this.panel13.BringToFront();
            //this.panel13.Visible = true;20190604
            // Set combobox's datasource to products table
            comboBox2.DataSource    = ProductsDB.GetProducts();
            comboBox2.DisplayMember = "ProdName";
            comboBox2.ValueMember   = "ProductId";

            // Set panel status as "products" for "update" and "add" button checking
            panelStatus = PanelStatus.Products;

            // Set desplay of relevant labels and buttons, and clear "Add" textbox
            lblItemList.Text   = "Products";
            lblUpdateItem.Text = "Update Product:";
            btnUpdate.Text     = "Update Product";
            lblAddItem.Text    = "Add Product:";
            btnAdd.Text        = "Add Product";
            txtAddItem.Clear();

            RadioButton rb = sender as RadioButton;

            if (rb != null)
            {
                if (rb.Checked)
                {
                    // Only one radio button will be checked
                    //Console.WriteLine("Changed: " + rb.Name);
                    //datagridview2.source = DataLayer.ProductsDB.GetProducts();
                }
            }
        }
Ejemplo n.º 4
0
 public Panel(CanvasType type, PanelStatus status, GameObject obj, LuaTable table)
 {
     panelType   = type;
     panelStatus = status;
     panelObject = obj;
     luaTable    = table;
 }
Ejemplo n.º 5
0
        public void GetPanelAtCoordinates()
        {
            Board       board = new Board();
            PanelStatus panelStatusBattleship = PanelStatus.Empty;
            string      status = panelStatusBattleship.GetDescription <DescriptionAttribute>().Description;
            string      output = board.Panels.At(1, 1).DisplayStatus;

            Assert.Equal(status, output);
        }
Ejemplo n.º 6
0
        public void HideMenuPanel()
        {
            if (_panelstatus == PanelStatus.Closed)
            {
                return;
            }

            ClosingAnimation();

            _panelstatus = PanelStatus.Closed;
        }
Ejemplo n.º 7
0
        public static PanelStatusData Create(PanelID panelId, PanelStatus status, GameObject obj = null)
        {
            PanelStatusData statusData = new PanelStatusData()
            {
                ID     = panelId,
                Status = status,
                Obj    = obj,
            };

            return(statusData);
        }
Ejemplo n.º 8
0
        public OperationResult <PanelStatus> GetPanelStatus(int userId, int blogId)
        {
            var status = new PanelStatus()
            {
                HasVoteUp     = _context.VoteUps.Count(x => x.BlogId == blogId && x.UserId == userId) > 0,
                HasVoteDown   = _context.VoteDowns.Count(x => x.BlogId == blogId && x.UserId == userId) > 0,
                HasCollection = _context.Collections.Count(x => x.BlogId == blogId && x.UserId == userId) > 0
            };

            return(new OperationResult <PanelStatus>(true, status));
        }
Ejemplo n.º 9
0
 public void Close()
 {
     this.panelStatus = PanelStatus.Close;
     if (this.panelObject.activeSelf)
     {
         this.panelObject.SetActive(false);
     }
     if (this._panel != null)
     {
         this._panel.ShowEvent -= this.Close;
     }
     if (this.CloseEvent != null)
     {
         this.CloseEvent();
     }
 }
Ejemplo n.º 10
0
 public void Close()
 {
     panelStatus = PanelStatus.Close;
     if (panelObject.activeSelf)
     {
         panelObject.SetActive(false);
     }
     if (_panel != null)
     {
         _panel.ShowEvent -= Close;
     }
     if (CloseEvent != null)
     {
         CloseEvent();
     }
 }
Ejemplo n.º 11
0
 public void DestroyPanel()
 {
     if (m_panel != null)
     {
         OnDestroy();
         UnityEngine.Object.Destroy(m_panel);
         m_panel = null;
     }
     else
     {
         // If we are in the loading status.
         if (m_Status == PanelStatus.ASYNC_LOADING)
         {
             m_Status = PanelStatus.IDLE;
         }
     }
 }
Ejemplo n.º 12
0
 public void Show()
 {
     this.panelStatus = PanelStatus.Show;
     if (!this.panelObject.activeSelf)
     {
         this.panelObject.SetActive(true);
     }
     if (this._panel != null)
     {
         this._panel.CloseEvent -= this.Show;
     }
     if (this.ShowEvent != null)
     {
         this.ShowEvent();
     }
     this.panelObject.transform.SetAsLastSibling();
 }
Ejemplo n.º 13
0
 public void Show()
 {
     panelStatus = PanelStatus.Show;
     if (!panelObject.activeSelf)
     {
         panelObject.SetActive(true);
     }
     if (_panel != null)
     {
         _panel.CloseEvent -= Show;
     }
     if (ShowEvent != null)
     {
         ShowEvent();
     }
     panelObject.transform.SetAsLastSibling();
 }
Ejemplo n.º 14
0
        public void ShowMenuPanel(MenubarItem invoked)
        {
            // This is needed
            this.RenderTransform = null; //.Margin = new Windows.UI.Xaml.Thickness(0, 0, 0, 0);

            _itemscontrol.ItemsSource = invoked.Categories;

            // This is needed to, otherwise the first-time-open height is incorrect.
            this.UpdateLayout();

            if (_panelstatus == PanelStatus.Open)
            {
                return;
            }

            OpeningAnimation();

            _panelstatus = PanelStatus.Open;
        }
Ejemplo n.º 15
0
        /// <summary>
        /// Collapses the panel.
        /// </summary>
        private void CollapsePanel()
        {
            while (AnimationSpeed != AnimationSpeed.NoAnimation && Height > nfpHeader.Height + m_animationStep)
            {
                Height -= m_animationStep;
                this.Invalidate();
                this.Update();
            }

            Height      = nfpHeader.Height;
            headerImage = expandImage;
            m_status    = PanelStatus.Collapsed;

            this.Invalidate();
            this.Update();

            // Clear memory
            GC.Collect();
        }
Ejemplo n.º 16
0
        /// <summary>
        /// Expands the panel.
        /// </summary>
        private void ExpandPanel()
        {
            while (AnimationSpeed != AnimationSpeed.NoAnimation && Height < m_expandedHeight - m_animationStep)
            {
                Height += m_animationStep;
                this.Invalidate();
                this.Update();
            }

            Height      = m_expandedHeight;
            headerImage = collapseImage;
            m_status    = PanelStatus.Expanded;

            this.Invalidate();
            this.Update();

            // Clear memory
            GC.Collect();
        }
Ejemplo n.º 17
0
        /// <summary>
        /// Updates the controls settings.
        /// </summary>
        protected override void OnCreateControl()
        {
            if (DesignMode)
            {
                return;
            }

            // Set the expanded height of the panel according to the height set in the designer
            // It can be set to a manual height by replacing "Height" with the number of your choice
            m_expandedHeight = Height;

            // Set the panel status for startup
            m_animationStep = m_expandedHeight;
            m_status        = (m_beginExpanded ? PanelStatus.Collapsed : PanelStatus.Expanded);
            SwitchStatus();

            // Set the animation speed
            UpdateAnimationSpeed();

            base.OnCreateControl();
        }
Ejemplo n.º 18
0
        // ------------Added by Wei Guang Yan----------------
        // Radio-button-Click event on "Suppliers"----Edit/Add supplier
        private void radioButton2_CheckedChanged(object sender, EventArgs e)
        {
            // Set panels visibilities, show panel related to Supliers "edit" and "Add"
            //this.panel14.SendToBack();

            //panelProductSuppliers.Hide();20190604
            //Show panel13
            this.panel13.BringToFront();
            //this.panel13.Visible = true;20190604

            // Set datasource of combobox to "Suppliers"
            comboBox2.DataSource    = SuppliersDB.GetSuppliers();
            comboBox2.DisplayMember = "SupName";
            comboBox2.ValueMember   = "SupplierId";

            // Set desplay of relevant labels and buttons, and clear "Add" textbox
            panelStatus        = PanelStatus.Suppliers;
            lblItemList.Text   = "Suppliers";
            lblUpdateItem.Text = "Update Supplier:";
            btnUpdate.Text     = "Update Supplier";
            lblAddItem.Text    = "Add Supplier:";
            btnAdd.Text        = "Add Supplier";
            txtAddItem.Clear();

            /*20190604 commented
             *          RadioButton rb = sender as RadioButton;
             * if (rb != null)
             * {
             *  if (rb.Checked)
             *  {
             *      // Only one radio button will be checked
             *      //Console.WriteLine("Changed: " + rb.Name);
             *      //datagridview2.source = DataLayer.SupplierDB.GetSuppliers();
             *  }
             * }
             */
        }
Ejemplo n.º 19
0
        public SaudiVisaStampUI(string orignalVisano)
        {
            InitializeComponent();
            try
            {
                // Availibility_Toggle.Show();
                ImageR.Region = WARPRO.Glob.CacheData.Glob_Veriables.GetRoundRegion(ImageR.Width, ImageR.Height);

                Edit_Btn.Show();
                Cancel_Edit_btn.Show();

                PrintBtn.Show();
                SAVE_NewTicket_Btn.Hide();
                Main_Info_Panel.Enabled = false;
                printpanel.Enabled      = false;



                // TransecLoad
                var tt = WARPRO.Glob.Bookings_And_Payments.Glob_Transec.Get_Transec_Row(orignalVisano.ToString());
                PanelStatus.Show();

                canceledLable.Show();
                transecGroup.Hide();

                StatusToggle.Checked = tt.STATUS;

                if (tt.STATUS == false)
                {
                    canceledLable.Text = "CANCELLED/REFUNDED";
                }
                if (tt.STATUS == true)
                {
                    if (tt.REMAINING > 0)
                    {
                        PayRemainingBtn.Show();
                    }


                    if (tt.REMAINING <= 0)
                    {
                        canceledLable.Text      = "CLEARED";
                        canceledLable.ForeColor = Color.Green;
                    }
                    else if (tt.REMAINING > 0)
                    {
                        canceledLable.Text      = "PENDING RECIEVABLE";
                        canceledLable.ForeColor = Color.DodgerBlue;
                    }
                }
                //



                var rr = WARPRO.Glob.CustomersAndAgents.Glob_SaudiVisaStamp.Get_SaudiVisaStamp_Row(orignalVisano);
                //'''''''''
                OrignalVisaNoForUpdates = rr.VISA_NO;

                orignalCustomerid = rr.CUSTOMER_ID;


                Custmer_Or_Agent_ID_Txt.Text = rr.CUSTOMER_ID.ToString();
                VisaNo_Txt.Text                 = rr.VISA_NO;
                IoNo_Txt.Text                   = rr.IO_NO;
                ENo_Txt.Text                    = rr.E_NO;
                ENo_Datetime.Value              = rr.E_NO_DATE;
                PasspoetSendingDateTime.Value   = rr.PASSPORT_SENDIND_DATE;
                PassportRecievingDateTime.Value = rr.PASSPORT_RECIEVING_DATE;
                DeliveryDateTime.Value          = rr.DELIVERY_DATE;


                RecievaleAmountTxt.Text = rr.RECIEVABLE_AMOUNT.ToString();
                PayAbleTxt.Text         = rr.PAYABLE_AMONT.ToString();


                PaymentDateTime.Value = rr.PAYMENT_DATE;

                ModeOfPaymentTypeTxt.Text = rr.MODE_OF_PAYMETN;


                //CustomerInfo
                ImageR1.Region = WARPRO.Glob.CacheData.Glob_Veriables.GetRoundRegion(ImageR1.Width, ImageR1.Height);
                var cr = WARPRO.Glob.CustomersAndAgents.CustomersAndAgents_class.Select_Row_Customer(rr.CUSTOMER_ID);

                if (cr != null)
                {
                    ImageR.Image = WARPRO.Glob.CacheData.Glob_Veriables.GetImageFromByteArray(cr.PICTURE);

                    Id_info_nameLink.Text     = cr.FIRST_NAME.ToUpper() + " " + cr.LAST_NAME.ToUpper();
                    Id_info_PassportLink.Text = cr.PASSPORT_NO;
                }

                // OurCompany Info

                compnyProfilepanel.Show();
                var oc = WARPRO.Glob.CustomersAndAgents.Glob_OurCompanyProfile.Get_Select_Row_OurCompanyProfile();

                HeaderCompanyNameTxt.Text = oc.COMPANY_NAME.ToUpper();
                FromBillOurcomp_Txt.Text  = "CONTACT INFO: " + oc.COMPANY_MOBILE_NO.ToString() + " - " + oc.OWNER_MOBILE_NO.ToString() + "ADDRESS- " + oc.ADDRESS;
                if (oc.IMAGE != null)
                {
                    ImageR1.Image = WARPRO.Glob.CacheData.Glob_Veriables.GetImageFromByteArray(oc.IMAGE);
                }
            }
            catch (Exception)
            {
                this.Close();
            }
        }
Ejemplo n.º 20
0
        /// <summary>
        /// Expands the panel.
        /// </summary>
        private void ExpandPanel()
        {
            while (AnimationSpeed != AnimationSpeed.NoAnimation && Height < m_expandedHeight - m_animationStep)
            {
                Height += m_animationStep;
                this.Invalidate();
                this.Update();
            }

            Height = m_expandedHeight;
            headerImage = collapseImage;
            m_status = PanelStatus.Expanded;

            this.Invalidate();
            this.Update();

            // Clear memory
            GC.Collect();
        }
Ejemplo n.º 21
0
        public TicketUI(string Orignalpnr)
        {
            InitializeComponent();
            try
            {
                // Availibility_Toggle.Show();
                ImageR.Region = WARPRO.Glob.CacheData.Glob_Veriables.GetRoundRegion(ImageR.Width, ImageR.Height);

                Edit_Btn.Show();
                Cancel_Edit_btn.Show();
                StatusToggle.Show();
                PrintBtn.Show();
                SAVE_NewTicket_Btn.Hide();
                Main_Info_Panel.Enabled = false;
                printpanel.Enabled      = false;



                var rr = WARPRO.Glob.CustomersAndAgents.Glob_Tickets.Get_TicketRow(Orignalpnr);
                //'''''''''
                OrignalPNRForUpdates = rr.PNR;
                orignalCustomerid    = rr.CUSTOMER_ID;

                Custmer_Or_Agent_ID_Txt.Text = rr.CUSTOMER_ID.ToString();
                PNR_Txt.Text              = rr.PNR;
                CarrierAirline_Txt.Text   = rr.CARRIER_AIRLINE;
                Sector_Txt.Text           = rr.SECTOR;
                TravellingDatetime.Value  = rr.TRAVELLING_DATE;
                IssuedFromText.Text       = rr.ISSUED_FROM;
                FaceValueTxt.Text         = rr.FACE_VALUE.ToString();
                PayAbleTxt.Text           = rr.PAYABLE.ToString();
                ProfitTxt.Text            = rr.PROFIT.ToString();
                OkToBoardCheckBox.Checked = rr.OK_TO_BOARD;

                Type_ComboBox.Text      = rr.TYPE;
                DepartureDateTime.Value = rr.DEPARTURE_DATE;

                ReturnDateTime.Hide();
                if (rr.TYPE.ToLower().Contains("one") == true)
                {
                    ReturnDateTime.Hide();
                }

                else if ((rr.TYPE.ToLower().Contains("two") == true) && (rr.RETURN_DATE != null))
                {
                    ReturnDateTime.Show();
                    ReturnDateTime.Value = DateTime.Parse(rr.RETURN_DATE);
                }

                VisaTypeTxt.Text    = rr.VISA_TYPE;
                PaymentTypeTxt.Text = rr.PAYMENT_TYPE;

                StatusToggle.Checked = rr.DEAL_STATUS;

                if (rr.DEAL_STATUS == false)
                {
                    canceledLable.Show();
                }

                TravellingFromPlaceTxt.Text = rr.TRAVELLING_FROM;
                DestinationTxt.Text         = rr.DESTINATION;


                //CustomerInfo
                var cr = WARPRO.Glob.CustomersAndAgents.CustomersAndAgents_class.Select_Row_Customer(rr.CUSTOMER_ID);

                if (cr != null)
                {
                    ImageR.Image = WARPRO.Glob.CacheData.Glob_Veriables.GetImageFromByteArray(cr.PICTURE);

                    Id_info_nameLink.Text     = cr.FIRST_NAME.ToUpper() + " " + cr.LAST_NAME.ToUpper();
                    Id_info_PassportLink.Text = cr.PASSPORT_NO;
                }



                // TransecLoad
                var tt = WARPRO.Glob.Bookings_And_Payments.Glob_Transec.Get_Transec_Row(Orignalpnr.ToString());
                PanelStatus.Show();

                canceledLable.Show();
                transecGroup.Hide();

                StatusToggle.Checked = tt.STATUS;

                if (tt.STATUS == false)
                {
                    canceledLable.Text = "CANCELLED/REFUNDED";
                }
                if (tt.STATUS == true)
                {
                    if (tt.REMAINING > 0)
                    {
                        PayRemainingBtn.Show();
                    }


                    if (tt.REMAINING <= 0)
                    {
                        canceledLable.Text      = "CLEARED";
                        canceledLable.ForeColor = Color.Green;
                    }
                    else if (tt.REMAINING > 0)
                    {
                        canceledLable.Text      = "PENDING RECIEVABLE";
                        canceledLable.ForeColor = Color.DodgerBlue;
                    }
                }
                //



                // OurCompany Info

                compnyProfilepanel.Show();
                var oc = WARPRO.Glob.CustomersAndAgents.Glob_OurCompanyProfile.Get_Select_Row_OurCompanyProfile();

                HeaderCompanyNameTxt.Text = oc.COMPANY_NAME.ToUpper();
                FromBillOurcomp_Txt.Text  = "CONTACT INFO: " + oc.COMPANY_MOBILE_NO.ToString() + " - " + oc.OWNER_MOBILE_NO.ToString() + "ADDRESS- " + oc.ADDRESS;
                if (oc.IMAGE != null)
                {
                    ImageR1.Image = WARPRO.Glob.CacheData.Glob_Veriables.GetImageFromByteArray(oc.IMAGE);
                }
            }
            catch (Exception)
            {
                this.Close();
            }
        }
Ejemplo n.º 22
0
 public override void OnEnter()
 {
     base.OnEnter();
     panel_status = Owner.GetComponent <PanelStatus>();
 }
Ejemplo n.º 23
0
        public ProtectorUI(long OrignalprotectorId)
        {
            InitializeComponent();
            try
            {
                // Availibility_Toggle.Show();
                ImageR.Region = WARPRO.Glob.CacheData.Glob_Veriables.GetRoundRegion(ImageR.Width, ImageR.Height);

                Edit_Btn.Show();
                Cancel_Edit_btn.Show();

                PrintBtn.Show();
                SAVE_NewTicket_Btn.Hide();
                Main_Info_Panel.Enabled = false;
                printpanel.Enabled      = false;


                // TransecLoad
                var tt = WARPRO.Glob.Bookings_And_Payments.Glob_Transec.Get_Transec_Row(OrignalprotectorId.ToString());
                PanelStatus.Show();

                canceledLable.Show();
                transecGroup.Hide();

                StatusToggle.Checked = tt.STATUS;

                if (tt.STATUS == false)
                {
                    canceledLable.Text = "CANCELLED/REFUNDED";
                }
                if (tt.STATUS == true)
                {
                    if (tt.REMAINING > 0)
                    {
                        PayRemainingBtn.Show();
                    }


                    if (tt.REMAINING <= 0)
                    {
                        canceledLable.Text      = "CLEARED";
                        canceledLable.ForeColor = Color.Green;
                    }
                    else if (tt.REMAINING > 0)
                    {
                        canceledLable.Text      = "PENDING RECIEVABLE";
                        canceledLable.ForeColor = Color.DodgerBlue;
                    }
                }
                //



                var rr = WARPRO.Glob.CustomersAndAgents.Glob_Protector.Get_Protector_Row(OrignalprotectorId);
                //'''''''''
                OrignalProtectoriDForUpdates = rr.PROTECTOR_ID;

                orignalCustomerid = rr.CUSTOMER_ID;


                ProtectorId_Txt.Text = "PROTECTOR ID : " + rr.PROTECTOR_ID.ToString();
                ProtectorId_Txt.Show();

                Custmer_Or_Agent_ID_Txt.Text = rr.CUSTOMER_ID.ToString();
                Profession_Txt.Text          = rr.PROFESSION;
                Country_Txt.Text             = rr.COUNTRY;
                ChargesTxt.Text = rr.CHARGES.ToString();

                PayAbleTxt.Text = rr.PAYABLE.ToString();

                PasspoetSendingDateTime.Value   = rr.PASSPORT_SENDING_DATE;
                PassportRecievingDateTime.Value = rr.PASSPORT_RECIEVING_DATE;


                ProfitTxt.Text = rr.PROFIT.ToString();



                //CustomerInfo
                ImageR1.Region = WARPRO.Glob.CacheData.Glob_Veriables.GetRoundRegion(ImageR1.Width, ImageR1.Height);
                var cr = WARPRO.Glob.CustomersAndAgents.CustomersAndAgents_class.Select_Row_Customer(rr.CUSTOMER_ID);

                if (cr != null)
                {
                    ImageR.Image = WARPRO.Glob.CacheData.Glob_Veriables.GetImageFromByteArray(cr.PICTURE);

                    Id_info_nameLink.Text     = cr.FIRST_NAME.ToUpper() + " " + cr.LAST_NAME.ToUpper();
                    Id_info_PassportLink.Text = cr.PASSPORT_NO;
                }

                // OurCompany Info

                compnyProfilepanel.Show();
                var oc = WARPRO.Glob.CustomersAndAgents.Glob_OurCompanyProfile.Get_Select_Row_OurCompanyProfile();

                HeaderCompanyNameTxt.Text = oc.COMPANY_NAME.ToUpper();
                FromBillOurcomp_Txt.Text  = "CONTACT INFO: " + oc.COMPANY_MOBILE_NO.ToString() + " - " + oc.OWNER_MOBILE_NO.ToString() + "ADDRESS- " + oc.ADDRESS;
                if (oc.IMAGE != null)
                {
                    ImageR1.Image = WARPRO.Glob.CacheData.Glob_Veriables.GetImageFromByteArray(oc.IMAGE);
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
                this.Close();
            }
        }
Ejemplo n.º 24
0
        /// <summary>
        /// Updates the controls settings.
        /// </summary>
        protected override void OnCreateControl()
        {
            if (DesignMode)
                return;

            // Set the expanded height of the panel according to the height set in the designer
            // It can be set to a manual height by replacing "Height" with the number of your choice
            m_expandedHeight = Height;

            // Set the panel status for startup
            m_animationStep = m_expandedHeight;
            m_status = (m_beginExpanded ? PanelStatus.Collapsed : PanelStatus.Expanded);
            SwitchStatus();

            // Set the animation speed
            UpdateAnimationSpeed();

            base.OnCreateControl();
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="NavigationPanelEvent"/> class
 /// </summary>
 /// <param name="viewModel">
 /// The <see cref="IPanelViewModel"/> associated to the panel
 /// </param>
 /// <param name="view">
 /// The <see cref="IPanelView"/> that is to be opened
 /// </param>
 /// <param name="status">
 /// The status of the panel
 /// </param>
 /// <param name="regionName">
 /// The name of the region in which the panel shall be opened
 /// </param>
 public NavigationPanelEvent(IPanelViewModel viewModel, IPanelView view, PanelStatus status)
 {
     this.ViewModel   = viewModel;
     this.View        = view;
     this.PanelStatus = status;
 }
Ejemplo n.º 26
0
 public UIPanelBase()
 {
     m_Status    = PanelStatus.IDLE;
     m_bShow     = true;
     m_bSyncLoad = false;
 }
Ejemplo n.º 27
0
        /// <summary>
        /// Collapses the panel.
        /// </summary>
        private void CollapsePanel()
        {
            while (AnimationSpeed != AnimationSpeed.NoAnimation && Height > nfpHeader.Height + m_animationStep)
            {
                Height -= m_animationStep;
                this.Invalidate();
                this.Update();
            }

            Height = nfpHeader.Height;
            headerImage = expandImage;
            m_status = PanelStatus.Collapsed;

            this.Invalidate();
            this.Update();

            // Clear memory
            GC.Collect();
        }
Ejemplo n.º 28
0
 public void SetPanelStatus(Panel panel, PanelStatus status)
 {
     Panels[(int)panel] = status;
 }
Ejemplo n.º 29
0
 /// <summary>
 /// Initializes a new instance of the <see cref="NavigationPanelEvent"/> class
 /// </summary>
 /// <param name="viewModel">
 /// The <see cref="IPanelViewModel"/> associated to the panel
 /// </param>
 /// <param name="view">
 /// The <see cref="IPanelView"/> that is to be opened
 /// </param>
 /// <param name="status">
 /// The status of the panel
 /// </param>
 /// <param name="regionName">
 /// The name of the region in which the panel shall be opened
 /// </param>
 public NavigationPanelEvent(IPanelViewModel viewModel, IPanelView view, PanelStatus status, string regionName = "")
 {
     this.ViewModel   = viewModel;
     this.View        = view;
     this.PanelStatus = status;
 }