Esempio n. 1
0
        //GameOver wird nach dem drücken einer belibigen Taste, nach dem Ende des Spiels ausgeführt
        private void GameOver()
        {
            Score           = 0;
            Hits            = 0;
            Stage           = 1;
            LabelScore.Text = Score.ToString();
            LabelStage.Text = Stage.ToString();
            Lives           = 3;
            Label2.Hide();
            Label5.Hide();

            Over = false;

            Live1.Show();
            Live2.Show();
            Live3.Show();

            MonstersDelete();
            MonstersNew();

            Random.Start();
            MonstersMove.Start();
            Bullets.Start();
            MonstersAttack.Start();
        }
Esempio n. 2
0
        public override void UpdateConstraints()
        {
            Console.WriteLine("Updating Constraints");

            ContentView.RemoveConstraints(Constraints);

            ContentView.AddConstraints(
                //				ContentView.AtLeftOf(this),
                //				ContentView.AtRightOf(this),
                //				ContentView.AtTopOf(this),
                //				ContentView.AtBottomOf(this),

                Label1.AtTopOf(ContentView),
                Label1.AtLeftOf(ContentView),
                Label1.AtRightOf(ContentView),
                Label1.Height().EqualTo(Label1.Font.LineHeight),

                Label2.Below(Label1),
                Label2.AtLeftOf(ContentView),
                Label2.AtRightOf(ContentView),
                Label2.AtBottomOf(ContentView)


                );

            base.UpdateConstraints();
        }
        void AddSomeGesturesUsingCode()
        {
            //2 options:
            //1. use the standard xamarin api. e.g. view.GestureRecgonizers.Add(yourgesturerecognizer)
            //    and then call view.ProcessGestures();
            //    this has the benefit that when Xamarin add an api hook we can remove the view.ProcessGestures call and
            //    it will all be good.
            //2. use the extension method view.AddGestureRecognizer(yourgesturerecognizer)
            //    this is easier to use; and does everything under the hood; but it's a bit more obtrusive.
            //   in all cases, until Xamarin do more to open up the api, you must use the view extension method
            //   removeGestureRecognizer
            // comment on https://bugzilla.xamarin.com/show_bug.cgi?id=30467 to get Xamarin to expand
            // IGestureRecognizer with some add/remove hooks
            var panRecognizer = new PanGestureRecognizer();

            panRecognizer.OnAction += OnAction;
            var Box3 = new BoxView()
            {
                Color = Color.Olive,
            };

            MainLayout.Children.Add(Box3);
            Box3.Layout(new Rectangle(100, 400, 100, 100));
//			Box3.AddGestureRecognizer (panRecognizer);

            var panRecognizerWith2Tocuhes = new TwinTechs.Gestures.PanGestureRecognizer();

            panRecognizerWith2Tocuhes.OnAction += OnAction;
            panRecognizerWith2Tocuhes.MinimumNumberOfTouches = 2;
            Label2.GestureRecognizers.Add(panRecognizerWith2Tocuhes);
            Label2.ProcessGestureRecognizers();
        }
        void OnAction(BaseGestureRecognizer recognizer, GestureRecognizerState state)
        {
            var panRecognizer = recognizer as PanGestureRecognizer;
            var view          = recognizer.View;

            if (state == GestureRecognizerState.Began)
            {
                _startBounds = recognizer.View.Bounds;
                Debug.WriteLine("START " + _startBounds);
            }
            if (state == GestureRecognizerState.Changed)
            {
                var message = "PAN " + recognizer + "\n";
                message += "POS: " + recognizer.LocationInView(view.ParentView);
                var translation = panRecognizer.GetTranslationInView(view.ParentView);
//			message += "touches: " + recognizer.NumberOfTouches + ", velocity: " + velocity;
                message += ", translation: " + translation;
                var bounds = new Rectangle(view.X + translation.X, view.Y + translation.Y, view.Width, view.Height);
                message        += ", vb: " + bounds;
                _startBounds.X += translation.X;
                _startBounds.Y += translation.Y;
                Debug.WriteLine("MOVE " + bounds);
                Device.BeginInvokeOnMainThread(() => {
                    Label2.Layout(bounds);
                });
                OutputLabel.Text = message;
            }
        }
Esempio n. 5
0
        void ReleaseDesignerOutlets()
        {
            if (IndicatorView != null)
            {
                IndicatorView.Dispose();
                IndicatorView = null;
            }

            if (Label1 != null)
            {
                Label1.Dispose();
                Label1 = null;
            }

            if (Label2 != null)
            {
                Label2.Dispose();
                Label2 = null;
            }

            if (Label3 != null)
            {
                Label3.Dispose();
                Label3 = null;
            }
        }
Esempio n. 6
0
        void ReleaseDesignerOutlets()
        {
            if (MainView != null)
            {
                MainView.Dispose();
                MainView = null;
            }

            if (Label1 != null)
            {
                Label1.Dispose();
                Label1 = null;
            }

            if (Label2 != null)
            {
                Label2.Dispose();
                Label2 = null;
            }

            if (Label3 != null)
            {
                Label3.Dispose();
                Label3 = null;
            }
        }
Esempio n. 7
0
        void AddSomeGesturesUsingCode()
        {
            //2 options:
            //1. use the standard xamarin api. e.g. view.GestureRecgonizers.Add(yourgesturerecognizer)
            //    and then call view.ProcessGestures();
            //    this has the benefit that when Xamarin add an api hook we can remove the view.ProcessGestures call and
            //    it will all be good.
            //2. use the extension method view.AddGestureRecognizer(yourgesturerecognizer)
            //    this is easier to use; and does everything under the hood; but it's a bit more obtrusive.
            //   in all cases, until Xamarin do more to open up the api, you must use the view extension method
            //   removeGestureRecognizer
            // comment on https://bugzilla.xamarin.com/show_bug.cgi?id=30467 to get Xamarin to expand
            // IGestureRecognizer with some add/remove hooks
            var tapRecognizer = new TwinTechs.Gestures.TapGestureRecognizer();

            tapRecognizer.OnAction += OnAction;
            Box2.AddGestureRecognizer(tapRecognizer);

            var tapRecognizerWith2Tocuhes = new TwinTechs.Gestures.TapGestureRecognizer();

            tapRecognizerWith2Tocuhes.OnAction += OnAction;
            tapRecognizerWith2Tocuhes.NumberOfTouchesRequired = 2;
            Label2.GestureRecognizers.Add(tapRecognizerWith2Tocuhes);
            Label2.ProcessGestureRecognizers();
        }
        void ReleaseDesignerOutlets()
        {
            if (BackArrow != null)
            {
                BackArrow.Dispose();
                BackArrow = null;
            }

            if (Label1 != null)
            {
                Label1.Dispose();
                Label1 = null;
            }

            if (Label2 != null)
            {
                Label2.Dispose();
                Label2 = null;
            }

            if (Label3 != null)
            {
                Label3.Dispose();
                Label3 = null;
            }

            if (PageTitle != null)
            {
                PageTitle.Dispose();
                PageTitle = null;
            }
        }
Esempio n. 9
0
        protected override void OnDisappearing()
        {
            base.OnDisappearing();

            MyStack.RemoveAllGestureRecognizers();
            Box.RemoveAllGestureRecognizers();
            Box2.RemoveAllGestureRecognizers();
            Label1.RemoveAllGestureRecognizers();
            Label2.RemoveAllGestureRecognizers();
        }
Esempio n. 10
0
 public void loadLabel()
 {
     lbllookuptable.DataBind();
     lbl_SectionType.DataBind();
     lbl_ComponentType.DataBind();
     lbl_SchoolType.DataBind();
     lbl_LocationType.DataBind();
     lblvalue.DataBind();
     Label2.DataBind();
     Label1.DataBind();
 }
Esempio n. 11
0
        protected void Page_Load(object sender, EventArgs e)
        {
            birimlerstore.DataSource = BldSvc.birimal();
            birimlerstore.DataBind();

            grupstore.DataSource = BldSvc.grupal();
            grupstore.DataBind();

            if (AktifKullanici != null)
            {
                ximgCap.Hide();
                xtxtCap.Hide();
                KurumStore.DataSource = BldSvc.kurumno(AktifKullanici);
                KurumStore.DataBind();

                e_mail.Hide();
                Konu.Hide();
                tel.Hide();
                Label2.Hide();
                Label3.Hide();
                BasvuruNo.Hide();
            }
            else
            {
                Tarih.Hide();
                Kurumlar.Hide();
                basvuru.Hide();
                Label5.Hide();
                Label4.Hide();
                Sonuc.Hide();
                BasvuruNo.Hide();
            }

            var kurumId = GetKurumId();

            if (kurumId == 0)
            {
                // Response.Write("Olmaz öyle");
                return;
            }

            var kurum = BldSvc.GetKurumById(kurumId);

            if (kurum == null)
            {
                // Response.Write("Kurum null ");
                return;
            }

            lblKurumAdi.Text = kurum.Adi;

            // var user = (dto_kullanicilar)Session["kullanici"];
            //var kurumid = user.KurumId;
        }
Esempio n. 12
0
        protected override void OnDisappearing()
        {
            base.OnDisappearing();

            Label1.RemoveAllGestureRecognizers();
            Label2.RemoveAllGestureRecognizers();
            Label3.RemoveAllGestureRecognizers();
            Label4.RemoveAllGestureRecognizers();
            Label5.RemoveAllGestureRecognizers();
            Label6.RemoveAllGestureRecognizers();
        }
Esempio n. 13
0
 void FixGesturesUsingXaml()
 {
     //the following is only necessary until Xamarin give us a hook into this I've filed a bugzilla about it
     //https://bugzilla.xamarin.com/show_bug.cgi?id=30467
     //if you don't want to write the following lines of code, then MAKE YOUR VOICE HEARD ON THAT BUG PLEASE! :)
     Label1.ProcessGestureRecognizers();
     Label2.ProcessGestureRecognizers();
     Label3.ProcessGestureRecognizers();
     Label4.ProcessGestureRecognizers();
     Label5.ProcessGestureRecognizers();
     Label6.ProcessGestureRecognizers();
 }
Esempio n. 14
0
        private async void ButtonFacebook_Clicked(object sender, System.EventArgs e)
        {
            await Task.WhenAny(Label1.FadeTo(0, AnimationSpeed, Easing.SinIn), Task.Delay(80));

            await Task.WhenAny(Entry1.FadeTo(0, AnimationSpeed, Easing.SinIn), Task.Delay(80));

            await Task.WhenAny(Label2.FadeTo(0, AnimationSpeed, Easing.SinIn), Task.Delay(80));

            await Task.WhenAny(Entry2.FadeTo(0, AnimationSpeed, Easing.SinIn), Task.Delay(80));

            await Task.WhenAny(buttonSubmit.FadeTo(0, AnimationSpeed, Easing.SinIn), Task.Delay(80));

            await buttonFacebook.FadeTo(0, AnimationSpeed, Easing.SinIn);
        }
Esempio n. 15
0
        void ReleaseDesignerOutlets()
        {
            if (Label1 != null)
            {
                Label1.Dispose();
                Label1 = null;
            }

            if (Button1 != null)
            {
                Button1.Dispose();
                Button1 = null;
            }

            if (Button2 != null)
            {
                Button2.Dispose();
                Button2 = null;
            }

            if (Button3 != null)
            {
                Button3.Dispose();
                Button3 = null;
            }

            if (Label2 != null)
            {
                Label2.Dispose();
                Label2 = null;
            }

            if (Button4 != null)
            {
                Button4.Dispose();
                Button4 = null;
            }

            if (Label3 != null)
            {
                Label3.Dispose();
                Label3 = null;
            }

            if (Button5 != null)
            {
                Button5.Dispose();
                Button5 = null;
            }
        }
Esempio n. 16
0
        protected override async void OnAppearing()
        {
            base.OnAppearing();

            await Task.WhenAny(Label1.ScaleTo(1, AnimationSpeed, Easing.SinIn), Task.Delay(80));

            await Task.WhenAny(Entry1.ScaleTo(1, AnimationSpeed, Easing.SinIn), Task.Delay(80));

            await Task.WhenAny(Label2.ScaleTo(1, AnimationSpeed, Easing.SinIn), Task.Delay(80));

            await Task.WhenAny(Entry2.ScaleTo(1, AnimationSpeed, Easing.SinIn), Task.Delay(80));

            await Task.WhenAny(buttonSubmit.ScaleTo(1, AnimationSpeed, Easing.SinIn), Task.Delay(80));

            await buttonFacebook.ScaleTo(1, AnimationSpeed, Easing.SinIn);
        }
Esempio n. 17
0
 private void TxtType_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (txtType.SelectedIndex == 0)
     {
         txtPath.Hide();
         Label2.Hide();
         txtContents.Show();
         label8.Show();
     }
     else if (txtType.SelectedIndex == 1)
     {
         txtPath.Show();
         Label2.Show();
         txtContents.Hide();
         label8.Hide();
     }
 }
Esempio n. 18
0
        private void bunifutoggleswitch1_onvaluechange(object sender, EventArgs e)
        {
            BunifuToggleSwitch b = (BunifuToggleSwitch)sender;

            if (Conversions.ToBoolean(Operators.ConditionalCompareObjectEqual(b.Value, true, false)))
            {
                typeUnitPanel.Visible   = true;
                selectUnitPanel.Visible = false;
                Label2.Hide();
                gradeAndComodityLabe.Hide();
            }
            else
            {
                typeUnitPanel.Visible   = false;
                selectUnitPanel.Visible = true;
                Label2.Show();
                gradeAndComodityLabe.Show();
            }
        }
Esempio n. 19
0
        private void InitializeComponent()
        {
            base.CreateControl();
            lbl_Content = new Label2();
#if DEVEXPRESS
            lbl_Content.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            lbl_Content.Appearance.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Top;
            lbl_Content.AutoSizeMode = LabelAutoSizeMode.None;
#else
            lbl_Content.TextAlign = ContentAlignment.MiddleCenter;
            lbl_Content.AutoSize  = false;
#endif
            lbl_Content.Dock      = System.Windows.Forms.DockStyle.Bottom;
            lbl_Content.Name      = "lbl_Content";
            lbl_Content.TabIndex  = 0;
            lbl_Content.BackColor = Color.Transparent;

            pictureBox_Loading      = new PictureBox();
            pictureBox_Loading.Name = "pictureBox_Loading";
            Image image = WaitingForm.WaitImage;
            pictureBox_Loading.Size  = new System.Drawing.Size(image.Width + 5, image.Height + 5);
            pictureBox_Loading.Image = image;

            pictureBox_Loading.Anchor   = AnchorStyles.None;
            pictureBox_Loading.Location = new Point((this.Width - pictureBox_Loading.Width) / 2, (this.Height - pictureBox_Loading.Height) / 2 - 20);

            image = WaitingForm.CloseImage;

            closeLabel            = new Label();
            closeLabel.AutoSize   = false;
            closeLabel.Size       = image.Size;
            closeLabel.Image      = image;
            closeLabel.ImageAlign = ContentAlignment.MiddleCenter;

            closeLabel.Anchor = AnchorStyles.Top | AnchorStyles.Right;
            closeLabel.Click += new EventHandler(closeLabel_Click);

            this.Text = "正在进行中...";

            this.Controls.Add(lbl_Content);
            this.Controls.Add(pictureBox_Loading);
            this.Controls.Add(closeLabel);
        }
        protected void btneditarRutina_Click1(object sender, EventArgs e)
        {
            try
            {
                string idrutina;



                idrutina = gridfichaderutina.SelectedRow.Cells[0].Text;

                TheGym n = new TheGym
                {
                    IDRutina = idrutina
                };
                n.BorrarDetalle();

                for (int i = 0; i < gridejerciciosrutina.Rows.Count; i++)
                {
                    TheGym q = new TheGym
                    {
                        IDRutina    = idrutina,
                        IDEjercicio = gridejerciciosrutina.Rows[i].Cells[2].Text,
                        Serie       = gridejerciciosrutina.Rows[i].Cells[3].Text,
                        Repeticion  = gridejerciciosrutina.Rows[i].Cells[4].Text,
                        Dia         = gridejerciciosrutina.Rows[i].Cells[5].Text
                    };



                    q.AddDetalleRutina();
                }

                Label2.Text = "Se Edito correctamente la rutina";
                Label2.Focus();
                ScriptManager.RegisterStartupScript(this, this.GetType(), "Pop", "$('#modal-default').modal('show');", true);
            }
            catch (Exception ex)
            {
                lblerror.Text = ex.Message.ToString();
            }
            ScriptManager.RegisterStartupScript(this, this.GetType(), "Pop", "$('#modal-default').modal('show');", true);
        }
Esempio n. 21
0
        protected override void OnSizeAllocated(double width, double height)
        {
            base.OnSizeAllocated(width, height);

            System.Diagnostics.Debug.WriteLine("deg : OnSizeAllocated");

            if (!First)
            {
                Label1.TranslateTo(50, 50, 1000);
                Label2.TranslateTo(100, 50);
                Label3.TranslateTo(200, 50);

                First = true;
            }

            /*
             *           Label1.LayoutTo(new Rectangle(40, 0, 30, 30));
             * Label2.LayoutTo(new Rectangle(80, 0, 30, 30));
             * Label3.LayoutTo(new Rectangle(100, 0, 30, 30));
             */
        }
Esempio n. 22
0
        protected void btnexport_Click(object sender, EventArgs e)
        {
            Response.Clear();
            Response.ClearHeaders();
            Response.AddHeader("content-disposition", "attachment;filename=SummaryReport.xls");
            Response.Charset     = "";
            Response.ContentType = "application/vnd.xls";
            StringBuilder  sb           = new StringBuilder();
            StringWriter   stringWriter = new StringWriter(sb);
            HtmlTextWriter htm          = new HtmlTextWriter(stringWriter);

            grdsummary.AllowPaging = false;
            gried();
            Label1.RenderControl(htm);
            lblPartyName.RenderControl(htm);
            Label2.RenderControl(htm);
            lbldate.RenderControl(htm);
            grdsummary.RenderControl(htm);
            Response.Write(stringWriter);
            Response.End();
            btnexport.Visible = false;
        }
Esempio n. 23
0
        void ReleaseDesignerOutlets()
        {
            if (Label1 != null)
            {
                Label1.Dispose();
                Label1 = null;
            }

            if (Label2 != null)
            {
                Label2.Dispose();
                Label2 = null;
            }

            if (Label3 != null)
            {
                Label3.Dispose();
                Label3 = null;
            }

            if (LabelBottom != null)
            {
                LabelBottom.Dispose();
                LabelBottom = null;
            }

            if (NextButton != null)
            {
                NextButton.Dispose();
                NextButton = null;
            }

            if (TitleLabel != null)
            {
                TitleLabel.Dispose();
                TitleLabel = null;
            }
        }
Esempio n. 24
0
        void ReleaseDesignerOutlets()
        {
            if (TitleLabel != null)
            {
                TitleLabel.Dispose();
                TitleLabel = null;
            }

            if (Image1 != null)
            {
                Image1.Dispose();
                Image1 = null;
            }

            if (Image2 != null)
            {
                Image2.Dispose();
                Image2 = null;
            }

            if (Label1 != null)
            {
                Label1.Dispose();
                Label1 = null;
            }

            if (Label2 != null)
            {
                Label2.Dispose();
                Label2 = null;
            }

            if (FavoritesButton != null)
            {
                FavoritesButton.Dispose();
                FavoritesButton = null;
            }
        }
Esempio n. 25
0
        /// <summary>
        /// Constructor for a Dialog for an Existing Document
        /// </summary>
        /// <param name="E">Event</param>
        public DialogDocuments(Event E, Document D)
        {
            InitializeComponent();

            this.E        = E;
            this.D        = D;
            this.toUpdate = false;

            // Show Event Details
            ShowDocument();
            LockControls();
            UpdateButtons(false);

            if (D.Type == DocumentType.Text)
            {
                txtType.SelectedIndex = 0;
                txtPath.Hide();
                Label2.Hide();
                txtContents.Show();
                label8.Show();
            }
            else if (D.Type == DocumentType.Other)
            {
                txtType.SelectedIndex = 1;
                txtPath.Show();
                Label2.Show();
                txtContents.Hide();
                label8.Hide();
            }
            else
            {
                txtPath.Hide();
                Label2.Hide();
                txtContents.Hide();
                label8.Hide();
            }
        }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void shouldBeAbleToListLabelsForNode()
        public virtual void ShouldBeAbleToListLabelsForNode()
        {
            // GIVEN
            long nodeId;
            int  labelId1;
            int  labelId2;

            using (Transaction tx = Db.beginTx())
            {
                nodeId = Db.createNode(Label1, Label2).Id;
                string labelName1 = Label1.name();
                string labelName2 = Label2.name();
                labelId1 = LabelId(Label.label(labelName1));
                labelId2 = LabelId(Label.label(labelName2));
                tx.Success();
            }

            // THEN
            StorageNodeCursor nodeCursor = StorageReader.allocateNodeCursor();

            nodeCursor.Single(nodeId);
            assertTrue(nodeCursor.Next());
            assertEquals(newSetWith(labelId1, labelId2), newSetWith(nodeCursor.Labels()));
        }
Esempio n. 27
0
        public void ShowDocument()
        {
            txtID.Value = D.ID;

            if (D.Type == DocumentType.Text)
            {
                txtType.SelectedIndex = 0;
                txtPath.Hide();
                Label2.Hide();
                txtContents.Show();
                label8.Show();
            }
            else
            {
                txtType.SelectedIndex = 1;
                txtPath.Show();
                Label2.Show();
                txtContents.Hide();
                label8.Hide();
            }

            txtPath.Text     = D.Path;
            txtContents.Text = D.Contents;
        }
Esempio n. 28
0
        private void InitializeComponent(bool shownCloseButton)
        {
            this.lbl_Content = new Label2();
            this.pictureBox1 = new System.Windows.Forms.PictureBox();
            this.panelControl1 = new Panel2();
            ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
#if DEVEXPRESS
            ((System.ComponentModel.ISupportInitialize)(this.panelControl1)).BeginInit();
#endif
            this.panelControl1.SuspendLayout();
            this.SuspendLayout();
            //
            // lbl_Content
            //
#if DEVEXPRESS
            this.lbl_Content.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.lbl_Content.Appearance.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Center;
            this.lbl_Content.AutoSizeMode = LabelAutoSizeMode.None;
#else
            this.lbl_Content.TextAlign = ContentAlignment.MiddleCenter;
            this.lbl_Content.AutoSize = false;
#endif
            this.lbl_Content.Dock = System.Windows.Forms.DockStyle.Fill;
            this.lbl_Content.Location = new System.Drawing.Point(3, 75);
            this.lbl_Content.Name = "lbl_Content";
            this.lbl_Content.TabIndex = 0;
            //
            // pictureBox1
            //
            this.pictureBox1.Image = WaitImage; //Properties.Resources.WaitingPanel;
            this.pictureBox1.Name = "pictureBox1";
            this.pictureBox1.TabIndex = 1;
            this.pictureBox1.TabStop = false;
            this.pictureBox1.Height = WaitImage.Height + 5;
            this.pictureBox1.Dock = DockStyle.Top;
            this.pictureBox1.SizeMode = PictureBoxSizeMode.CenterImage;
            //
            // panelControl1
            //
            this.panelControl1.Controls.Add(this.lbl_Content);
            this.panelControl1.Controls.Add(this.pictureBox1);
            this.panelControl1.Dock = System.Windows.Forms.DockStyle.Fill;
            this.panelControl1.Location = new System.Drawing.Point(0, 0);
            this.panelControl1.Name = "panelControl1";
            this.panelControl1.Size = new System.Drawing.Size(335, 109);
            this.panelControl1.TabIndex = 1;
            //
            // WaitingForm
            //
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(300, 75);
            if (shownCloseButton)
            {
                Label closeLabel = new Label();
                closeLabel.AutoSize = false;
                var image = CloseImage;
                closeLabel.Size = image.Size;
                closeLabel.Location = new System.Drawing.Point(this.Width - 30, 1);
                closeLabel.Image = image;
                closeLabel.ImageAlign = ContentAlignment.MiddleCenter;
                closeLabel.Click += new EventHandler(closeLabel_Click);
                this.Controls.Add(closeLabel);
            }
            this.Controls.Add(this.panelControl1);

            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            this.MaximizeBox = false;
            this.Name = "WaitingForm";
            this.ShowIcon = false;
            this.ShowInTaskbar = false;
            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
            this.Text = "正在准备中...";
            // this.TopMost = true;
            ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
#if DEVEXPRESS
            ((System.ComponentModel.ISupportInitialize)(this.panelControl1)).EndInit();
#endif
            this.panelControl1.ResumeLayout(false);
            this.ResumeLayout(false);
        }
        void ReleaseDesignerOutlets()
        {
            if (BackButton != null)
            {
                BackButton.Dispose();
                BackButton = null;
            }

            if (CenterListTextField != null)
            {
                CenterListTextField.Dispose();
                CenterListTextField = null;
            }

            if (CiudadListTextField != null)
            {
                CiudadListTextField.Dispose();
                CiudadListTextField = null;
            }

            if (Label1 != null)
            {
                Label1.Dispose();
                Label1 = null;
            }

            if (Label2 != null)
            {
                Label2.Dispose();
                Label2 = null;
            }

            if (Label3 != null)
            {
                Label3.Dispose();
                Label3 = null;
            }

            if (mandatoryLabel != null)
            {
                mandatoryLabel.Dispose();
                mandatoryLabel = null;
            }

            if (ModifyButton != null)
            {
                ModifyButton.Dispose();
                ModifyButton = null;
            }

            if (PaisListTextField != null)
            {
                PaisListTextField.Dispose();
                PaisListTextField = null;
            }

            if (TitleViewLabel != null)
            {
                TitleViewLabel.Dispose();
                TitleViewLabel = null;
            }
        }
Esempio n. 30
0
        void ReleaseDesignerOutlets()
        {
            if (Caption != null)
            {
                Caption.Dispose();
                Caption = null;
            }

            if (Label1 != null)
            {
                Label1.Dispose();
                Label1 = null;
            }

            if (Image1 != null)
            {
                Image1.Dispose();
                Image1 = null;
            }

            if (Image2 != null)
            {
                Image2.Dispose();
                Image2 = null;
            }

            if (Label2 != null)
            {
                Label2.Dispose();
                Label2 = null;
            }

            if (Image3 != null)
            {
                Image3.Dispose();
                Image3 = null;
            }

            if (Label3 != null)
            {
                Label3.Dispose();
                Label3 = null;
            }

            if (Image4 != null)
            {
                Image4.Dispose();
                Image4 = null;
            }

            if (Label4 != null)
            {
                Label4.Dispose();
                Label4 = null;
            }

            if (Number != null)
            {
                Number.Dispose();
                Number = null;
            }

            if (IssueType != null)
            {
                IssueType.Dispose();
                IssueType = null;
            }
        }
Esempio n. 31
0
		public void Label2_Click(System.Object eventSender, System.EventArgs eventArgs)
		{
			short Index = Label2.GetIndex(eventSender);
			Picture1_Click(Picture1[Index], new System.EventArgs());
		}
Esempio n. 32
0
        private void InitializeComponent(Control owner)
        {
            this.lbl_Caption = new Label2();
            this.pic_Icon = new Picture2();
            this.panel_Footer = new Panel2();
            this.check_DonotShow = new Check2();
            this.simpleButton3 = new Button2();
            this.simpleButton2 = new Button2();
            this.simpleButton1 = new Button2();
            this.panel_Content = new Panel2();
            this.txt_Content = new Rich2();
            this.panel_Caption = new Panel2();
#if DEVEXPRESS
            ((System.ComponentModel.ISupportInitialize)(this.panel_Caption)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.pic_Icon.Properties)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.panel_Footer)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.check_DonotShow.Properties)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.panel_Content)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.txt_Content.Properties)).BeginInit();
#endif
            this.panel_Caption.SuspendLayout();
            this.panel_Footer.SuspendLayout();
            this.panel_Content.SuspendLayout();
            this.check_DonotShow.SuspendLayout();
            this.SuspendLayout();
#if DEVEXPRESS
            var noBorder = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
#else
            var noBorder = BorderStyle.None;
#endif
            //
            // panel_Caption
            //
            this.panel_Caption.BorderStyle = noBorder;
            this.panel_Caption.Controls.Add(this.lbl_Caption);
            this.panel_Caption.Controls.Add(this.pic_Icon);
            this.panel_Caption.Dock = System.Windows.Forms.DockStyle.Top;
            this.panel_Caption.Location = new System.Drawing.Point(8, 8);
            this.panel_Caption.Name = "panel_Caption";
            this.panel_Caption.Size = new System.Drawing.Size(478, 64);
            this.panel_Caption.TabIndex = 0;
            //
            // lbl_Caption
            //
#if DEVEXPRESS
            this.lbl_Caption.AllowHtmlString = true;
            this.lbl_Caption.Appearance.Font = new System.Drawing.Font("Tahoma", 12F, System.Drawing.FontStyle.Bold);
            this.lbl_Caption.Appearance.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(51)))), ((int)(((byte)(153)))));
            this.lbl_Caption.Appearance.Options.UseFont = true;
            this.lbl_Caption.Appearance.Options.UseForeColor = true;
            this.lbl_Caption.AutoSizeMode = DevExpress.XtraEditors.LabelAutoSizeMode.None;
#else
            this.lbl_Caption.Font = new System.Drawing.Font("Tahoma", 12F, System.Drawing.FontStyle.Bold);
            this.lbl_Caption.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(51)))), ((int)(((byte)(153)))));
            this.lbl_Caption.TextAlign = ContentAlignment.MiddleLeft;
            this.lbl_Caption.AutoSize = false;
#endif
            this.lbl_Caption.Dock = System.Windows.Forms.DockStyle.Right;
            this.lbl_Caption.Location = new System.Drawing.Point(64, 0);
            this.lbl_Caption.Name = "lbl_Caption";
            this.lbl_Caption.Size = new System.Drawing.Size(414, 64);
            this.lbl_Caption.TabIndex = 1;
            this.lbl_Caption.Text = "标题";
            //
            // pic_Icon
            //
            this.pic_Icon.Location = new System.Drawing.Point(14, 14);
            this.pic_Icon.Name = "pic_Icon";
#if DEVEXPRESS
            this.pic_Icon.Properties.Appearance.BackColor = System.Drawing.Color.Transparent;
            this.pic_Icon.Properties.Appearance.Options.UseBackColor = true;
            this.pic_Icon.Properties.BorderStyle = noBorder;
            this.pic_Icon.Properties.ShowMenu = false;
#else
            this.pic_Icon.BackColor = System.Drawing.Color.Transparent;
            this.pic_Icon.BorderStyle = noBorder;
#endif
            this.pic_Icon.Size = new System.Drawing.Size(36, 36);
            this.pic_Icon.TabIndex = 0;
            //
            // panel_Footer
            //
            this.panel_Footer.BorderStyle = noBorder;
            this.panel_Footer.Controls.Add(this.check_DonotShow);
            this.panel_Footer.Controls.Add(this.simpleButton3);
            this.panel_Footer.Controls.Add(this.simpleButton2);
            this.panel_Footer.Controls.Add(this.simpleButton1);
            this.panel_Footer.Dock = System.Windows.Forms.DockStyle.Bottom;
            this.panel_Footer.Location = new System.Drawing.Point(8, 143);
            this.panel_Footer.Name = "panel_Footer";
            this.panel_Footer.Size = new System.Drawing.Size(478, 35);
            this.panel_Footer.TabIndex = 1;
            //
            // check_DonotShow
            //
            this.check_DonotShow.Location = new System.Drawing.Point(3, 7);
            this.check_DonotShow.Name = "check_DonotShow";
#if DEVEXPRESS
            this.check_DonotShow.Properties.Caption = "不再显示";
#else
            this.check_DonotShow.Text = "不再显示";
#endif
            this.check_DonotShow.AutoSize = true;
            this.check_DonotShow.Size = new System.Drawing.Size(75, 19);
            this.check_DonotShow.TabIndex = 3;
            //
            // simpleButton3
            //
            this.simpleButton3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
            this.simpleButton3.Location = new System.Drawing.Point(234, 6);
            this.simpleButton3.Name = "simpleButton3";
            this.simpleButton3.Size = new System.Drawing.Size(75, 25);
            this.simpleButton3.TabIndex = 2;
            this.simpleButton3.Text = "Three";
            //
            // simpleButton2
            //
            this.simpleButton2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
            this.simpleButton2.Location = new System.Drawing.Point(315, 6);
            this.simpleButton2.Name = "simpleButton2";
            this.simpleButton2.Size = new System.Drawing.Size(75, 25);
            this.simpleButton2.TabIndex = 1;
            this.simpleButton2.Text = "Tow";
            //
            // simpleButton1
            //
            this.simpleButton1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
            this.simpleButton1.Location = new System.Drawing.Point(396, 6);
            this.simpleButton1.Name = "simpleButton1";
            this.simpleButton1.Size = new System.Drawing.Size(75, 25);
            this.simpleButton1.TabIndex = 0;
            this.simpleButton1.Text = "One";
            //
            // panel_Content
            //
#if DEVEXPRESS
            this.panel_Content.Appearance.BackColor = System.Drawing.Color.White;
            this.panel_Content.Appearance.Options.UseBackColor = true;
#else
            this.panel_Content.BackColor = System.Drawing.Color.White;
#endif
            this.panel_Content.BorderStyle = noBorder;
            this.panel_Content.Controls.Add(this.txt_Content);
            this.panel_Content.Dock = System.Windows.Forms.DockStyle.Fill;
            this.panel_Content.Location = new System.Drawing.Point(8, 72);
            this.panel_Content.Name = "panel_Content";
            this.panel_Content.Padding = new System.Windows.Forms.Padding(32, 24, 32, 24);
            this.panel_Content.Size = new System.Drawing.Size(478, 71);
            this.panel_Content.TabIndex = 2;
            //
            // txt_Content
            //
            this.txt_Content.Dock = System.Windows.Forms.DockStyle.Fill;
            this.txt_Content.Location = new System.Drawing.Point(32, 24);
            this.txt_Content.Name = "txt_Content";
#if DEVEXPRESS
            this.txt_Content.EditValue = "";
            this.txt_Content.Properties.Appearance.BackColor = System.Drawing.SystemColors.Window;
            this.txt_Content.Properties.Appearance.Font = new System.Drawing.Font("新宋体", 9F);
            this.txt_Content.Properties.Appearance.Options.UseBackColor = true;
            this.txt_Content.Properties.Appearance.Options.UseFont = true;
            this.txt_Content.Properties.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
            this.txt_Content.Properties.ReadOnly = true;
#else
            this.txt_Content.Dock = System.Windows.Forms.DockStyle.Fill;
            this.txt_Content.Text = "";
            this.txt_Content.Location = new System.Drawing.Point(32, 24);
            this.txt_Content.Name = "txt_Content";
            this.txt_Content.BackColor = System.Drawing.SystemColors.Window;
            this.txt_Content.Font = new System.Drawing.Font("新宋体", 9F);
            this.txt_Content.BorderStyle = BorderStyle.None;
            this.txt_Content.ReadOnly = true;
#endif
            this.txt_Content.Size = new System.Drawing.Size(414, 23);
            this.txt_Content.TabIndex = 2;
            this.txt_Content.Enter += new System.EventHandler(this.txt_Content_Enter);
            this.txt_Content.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txt_Content_KeyDown);
            this.txt_Content.Leave += new System.EventHandler(this.txt_Content_Leave);
            //
            // MessageBoxForm
            //
            this.AcceptButton = this.simpleButton1;
            this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(494, 186);
            this.Controls.Add(this.panel_Content);
            this.Controls.Add(this.panel_Footer);
            this.Controls.Add(this.panel_Caption);
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
            this.MaximizeBox = false;
            this.MinimizeBox = false;
            this.Name = "MessageBoxForm";
            this.Padding = new System.Windows.Forms.Padding(8);
            this.ShowIcon = false;
            this.ShowInTaskbar = false;
            this.StartPosition = (owner == null) ? System.Windows.Forms.FormStartPosition.CenterScreen : FormStartPosition.CenterParent;
#if DEVEXPRESS
            this.LookAndFeel.SkinName = "Money Twins";
            ((System.ComponentModel.ISupportInitialize)(this.panel_Caption)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.pic_Icon.Properties)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.panel_Footer)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.check_DonotShow.Properties)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.panel_Content)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.txt_Content.Properties)).EndInit();
#endif
            this.panel_Caption.ResumeLayout(false);
            this.panel_Footer.ResumeLayout(false);
            this.check_DonotShow.ResumeLayout(false);
            this.panel_Content.ResumeLayout(false);
            this.ResumeLayout(false);
        }
Esempio n. 33
0
        private void InitializeComponent()
        {
            base.CreateControl();
            lbl_Content = new Label2();
#if DEVEXPRESS
            lbl_Content.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            lbl_Content.Appearance.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Top;
            lbl_Content.AutoSizeMode = LabelAutoSizeMode.None;
#else
            lbl_Content.TextAlign = ContentAlignment.MiddleCenter;
            lbl_Content.AutoSize = false;
#endif
            lbl_Content.Dock = System.Windows.Forms.DockStyle.Bottom;
            lbl_Content.Name = "lbl_Content";
            lbl_Content.TabIndex = 0;
            lbl_Content.BackColor = Color.Transparent;

            pictureBox_Loading = new PictureBox();
            pictureBox_Loading.Name = "pictureBox_Loading";
            Image image = WaitingForm.WaitImage;
            pictureBox_Loading.Size = new System.Drawing.Size(image.Width + 5, image.Height + 5);
            pictureBox_Loading.Image = image;

            pictureBox_Loading.Anchor = AnchorStyles.None;
            pictureBox_Loading.Location = new Point((this.Width - pictureBox_Loading.Width) / 2, (this.Height - pictureBox_Loading.Height) / 2 - 20);

            image = WaitingForm.CloseImage;

            closeLabel = new Label();
            closeLabel.AutoSize = false;
            closeLabel.Size = image.Size;
            closeLabel.Image = image;
            closeLabel.ImageAlign = ContentAlignment.MiddleCenter;

            closeLabel.Anchor = AnchorStyles.Top | AnchorStyles.Right;
            closeLabel.Click += new EventHandler(closeLabel_Click);

            this.Text = "正在进行中...";

            this.Controls.Add(lbl_Content);
            this.Controls.Add(pictureBox_Loading);
            this.Controls.Add(closeLabel);
        }