private void button1_Click(object sender, EventArgs e) { //RECEBE O VALOR DOS TXTBOX E EXEBI NA CAIDA DE RESULADO SOMA int resultado = Convert.ToInt32(textBox1.Text) + Convert.ToInt32(textBox2.Text) + Convert.ToInt32(textBox3.Text); textBox5.Text = resultado.ToString(); Button2.Focus(); // ERRO PRA FAZER A MEDIA double media = (Convert.ToDouble(textBox1.Text) + Convert.ToDouble(textBox2.Text) + Convert.ToDouble(textBox3.Text)) / 3; //.ToString("F2") tanto de casa que vai aparecer depois da virgula (,) textBox4.Text = media.ToString("F2"); MessageBox.Show("acertou mizeravi"); }
public void ClickButton(int value) { foreach (var digit in value.ToString()) { if (digit == '1') { Button1.Click(); } if (digit == '2') { Button2.Click(); } if (digit == '3') { Button3.Click(); } if (digit == '4') { Button4.Click(); } if (digit == '5') { Button5.Click(); } if (digit == '6') { Button6.Click(); } if (digit == '7') { Button7.Click(); } if (digit == '8') { Button8.Click(); } if (digit == '9') { Button9.Click(); } if (digit == '0') { Button0.Click(); } } }
public static void Records(Object sender, EventArgs e) { Button3.Hide(); Button2.Hide(); Button1.Hide(); Button4.Location = new Point(400, 400); Button4.Show(); ListBox.Show(); ListBox.Clear(); int i = 1; foreach (int res in Results.Reverse()) { ListBox.Items.Add(i.ToString() + ") " + res.ToString()); i += 1; } }
public override void ViewDidLoad() { base.ViewDidLoad(); var map = new MKMapView(new RectangleF(20, 166, 280, 192)); this.View.Add(map); map.ShowsUserLocation = true; map.MapType = MKMapType.Standard; map.Delegate = new MapViewDelegate(); var location = new CLLocationCoordinate2D(ViewModel.Latitude, ViewModel.Longitude); //map.SetCenterCoordinate(location, true); map.SetRegion(new MKCoordinateRegion(location, new MKCoordinateSpan(0.1, 0.1)), true); var annotation = new MyAnnotation( location , ViewModel.SharedTextSource.GetText("AppTitle") , ViewModel.Name); map.AddAnnotationObject(annotation); Button1.SetImage(UIImage.FromFile("ConfResources/Images/appbar.link.png"), UIControlState.Normal); Button2.SetImage(UIImage.FromFile("ConfResources/Images/appbar.phone.png"), UIControlState.Normal); Button3.SetImage(UIImage.FromFile("ConfResources/Images/appbar.feature.email.rest.png"), UIControlState.Normal); this.AddBindings(new Dictionary <object, string>() { { Label1, "{'Text':{'Path':'Name'}}" }, { Button1, "{'Title':{'Path':'Address'}}" }, { Button2, "{'Title':{'Path':'Phone'}}" }, { Button3, "{'Title':{'Path':'Email'}}" }, }); this.AddBindings(new Dictionary <object, string>() { { Button1, "{'TouchDown':{'Path':'WebPageCommand'}}" }, { Button2, "{'TouchDown':{'Path':'PhoneCommand'}}" }, { Button3, "{'TouchDown':{'Path':'EmailCommand'}}" }, }); NavigationItem.SetRightBarButtonItem(new UIBarButtonItem("Tweet", UIBarButtonItemStyle.Bordered, (sender, e) => ViewModel.ShareGeneralCommand.Execute()), false); }
public void Start() { Podpowiedz.SetActive(true); Button1.GetComponent <Button>().onClick.RemoveAllListeners(); Button2.GetComponent <Button>().onClick.RemoveAllListeners(); Button3.GetComponent <Button>().onClick.RemoveAllListeners(); Button4.GetComponent <Button>().onClick.RemoveAllListeners(); Button1.GetComponent <Button>().onClick.AddListener(() => QuizLogic(1)); Button2.GetComponent <Button>().onClick.AddListener(() => QuizLogic(2)); Button3.GetComponent <Button>().onClick.AddListener(() => QuizLogic(3)); Button4.GetComponent <Button>().onClick.AddListener(() => QuizLogic(4)); points = 0; index = 0; drawQuestions(); SetButtons(index); currentTime = startTime; isActive = true; }
private void Frm_usuario_Load(object sender, EventArgs e) { Button1.Hide(); Button2.Hide(); Button3.Hide(); Button4.Hide(); pictureBox1.Hide(); PictureBox3.SetBounds(this.Width - 80, 25, PictureBox3.Width, PictureBox3.Height); Label6.Hide(); DataGridView1.Hide(); ComboBox1.SelectedIndex = 0; conexion.llenarComboBox("SELECT * from tbl_departamentos", cb_departamento, "id_departamento", "nombre"); if (cb_departamento.SelectedIndex > 0 & cb_nombramiento.SelectedIndex > 0) { cb_departamento.SelectedIndex = 0; } cb_nombramiento.SelectedIndex = 0; }
async private void Button2Tapp_Tapped(object sender, EventArgs e) { // -- button2 fadeto and changing color if (Button2.BackgroundColor != Color.Lime) { await Button2.FadeTo(0, 300); // fadeto 0% in 300ms Button2.BackgroundColor = Color.Lime; // changing border color to 'lime' await Button2.FadeTo(1, 300); // fadeto 100% in 300ms } else { await Button2.FadeTo(0, 300); // fadeto 0% in 300ms Button2.BackgroundColor = Color.Black; // changing border color to 'lime' await Button2.FadeTo(1, 300); // fadeto 100% in 300ms } }
public override void SetNewStyle() { base.SetNewStyle(); button = gameObject.GetComponentsInChildren <Button>(true); foreach (var item in button) { if (item.GetComponent <ButtonStyle>()) { continue; } item.colors = data.colors; Button2 b2 = item as Button2; if (b2) { b2.scaleMultiplier = data.scaleMultiplier; } } }
private void Form3_Load(object sender, EventArgs e) { konek con = new konek(); con.connect(); Menu1.Hide(); lihatData.Hide(); soal = new string[23]; soal[0] = "saya pergi keluar rumah"; soal[1] = "saya menggunakan transportasi umum : online,angkot,Taxi,Bus,Kereta"; soal[2] = "saya Tidak Memakai Masker pada saat berkumpul dengan orang lain"; soal[3] = "Saya berjabat tangan dengan orang lain"; soal[4] = "Saya tidak membersihkan tangan dengan handsanitizer/tissue basah sebelum memegang gagang motor atau stir mobil"; soal[5] = "Saya menyentuh benda / uang yang juga disentuh orang lain"; soal[6] = "Saya tidak berjarak 1,5 meter dengan orang lain ketika : berbelanja, berkumpul, bekerja,DLL"; soal[7] = "Saya makan di luar rumah (warung/restoran)"; soal[8] = "Saya tidak minum hangat / tidak mencuci tangan ketika tiba di tujuan"; soal[9] = "Saya berada di Redzone (daerah penularan covid-19)"; soal[10] = "Saya Tidak pasang handsanitizer di depan pintu masuk, untuk membersihkan tangan sebelum memegang gagan pintu masuk"; soal[11] = "Saya Tidak Mencuci Tangan Dengan sabun setelah tiba di rumah"; soal[12] = "Saya tidak menyediakan : Tissu Basah, Handsanitizer, Masker, Sabun antiseptic bagi keluarga di rumah"; soal[13] = "Saya tidak segera merendam baju & celana bekas pakai di luar rumah ke dalam airpanas / air sabun"; soal[14] = "Saya tidak segera mandi setelah tiba di rumah"; soal[15] = "Saya tidak mensosialisasikan sensus ini kepada keluarga ???!!!"; soal[16] = "Saya dalam sehari tidak kena cahaya matahari (minimal 15 menit)"; soal[17] = "Saya tidak berolahraga (Minimal 30 menit)"; soal[18] = "Saya jarang Minum Vit C & E dan kurang tidur"; soal[19] = "Usia Saya Diatas 60 Tahun"; soal[20] = "Saya mempunyai penyakit kronis (diabetes/kanker/jantung/gangguan pernafasan kronik)"; soal[21] = "SELESAI"; soal[22] = "Tekan lanjut untuk Mulai"; Label1.Text = soal[22]; Label2.Text = ""; RadioButton1.Enabled = false; RadioButton2.Enabled = false; Button2.Enabled = false; TextBox1.Enabled = false; Menu1.Hide(); hasilAkhir.Hide(); Button2.Hide(); opsi2.Hide(); lihatData.Hide(); Data.Hide(); }
private void OnAnnotationToggle(object sender, RoutedEventArgs e) { ToggleButton tb = sender as ToggleButton; Point pt = new Point(); if (tb == null) { return; } if (tb.IsChecked == true) { ToggleButton1.Content = "Save"; //Button2.Visibility = Visibility.Visible; _PausedMediaTimeSpan = new TimeSpan(_CurrentMediaTimeSpan.Ticks); Button1.RaiseEvent(e); // forward click event to pause button Application.Current.Windows[1].Height = _ANNOTATE_HEIGHT; } else { // save the annotation //if (myInkCanvas.Strokes.Count != 0) { ToggleButton1.Content = "Annotate"; //Button2.Visibility = Visibility.Collapsed; TransformGroup tg = Ellipse2.RenderTransform as TransformGroup; TranslateTransform tt = tg.Children[5] as TranslateTransform; pt.X = tt.X; tg = Ellipse2.RenderTransform as TransformGroup; tt = tg.Children[5] as TranslateTransform; pt.Y = tt.Y; _VideoAnnotation.Add(myInkCanvas.Strokes.Clone(), _CurrentAnnotationID.ToString(), TextBox1.Text, _PausedMediaTimeSpan, pt); _CurrentAnnotationID++; } Button2.RaiseEvent(e); // forward click event to resume button } }
void Awake() { thisLoggingID = loggingID++; Buttons = new KMSelectable[] { Button0, Button1, Button2, Button3, Button4, Button5, Button6, Button7, Button8, Button9 }; transform.Find("Background").GetComponent <MeshRenderer>().material.color = new Color(1, 0.1f, 0.1f); MeshRenderer mr = transform.Find("Wiring").GetComponent <MeshRenderer>(); mr.materials[0].color = new Color(0.1f, 0.1f, 0.1f); mr.materials[1].color = new Color(0.3f, 0.3f, 0.3f); mr.materials[2].color = new Color(0.1f, 0.4f, 0.8f); transform.Find("Main Display").Find("Edge").GetComponent <MeshRenderer>().material.color = new Color(0, 0, 0); transform.Find("Stage Display").Find("Edge").GetComponent <MeshRenderer>().material.color = new Color(0, 0, 0); Button0.OnInteract += Handle0; Button1.OnInteract += Handle1; Button2.OnInteract += Handle2; Button3.OnInteract += Handle3; Button4.OnInteract += Handle4; Button5.OnInteract += Handle5; Button6.OnInteract += Handle6; Button7.OnInteract += Handle7; Button8.OnInteract += Handle8; Button9.OnInteract += Handle9; Color c = new Color(.71f, .70f, .68f); //new Color(0.91f, 0.88f, 0.86f); Button0.GetComponent <MeshRenderer>().material.color = c; Button1.GetComponent <MeshRenderer>().material.color = c; Button2.GetComponent <MeshRenderer>().material.color = c; Button3.GetComponent <MeshRenderer>().material.color = c; Button4.GetComponent <MeshRenderer>().material.color = c; Button5.GetComponent <MeshRenderer>().material.color = c; Button6.GetComponent <MeshRenderer>().material.color = c; Button7.GetComponent <MeshRenderer>().material.color = c; Button8.GetComponent <MeshRenderer>().material.color = c; Button9.GetComponent <MeshRenderer>().material.color = c; GetComponent <KMBombModule>().OnActivate += ActivateModule; }
private void Form1_KeyDown(object sender, KeyEventArgs e) { switch (e.KeyCode) { case Keys.Z: if (P.Left > 2) { P.Left -= 10; //左移 } break; case Keys.X: if (P.Left < 355) { P.Left += 10; //右移 } break; case Keys.Space: MyShot(); //開槍 player.SoundLocation = Application.StartupPath + @"\\shoot.wav"; player.Play(); break; } if (ListBox1.SelectedIndex >= 0)//有選取遊戲對手,上線遊戲中 { switch (e.KeyCode) { case Keys.Z: //移動飛機 Send("3" + P.Left.ToString() + "|" + ListBox1.SelectedItem); //傳送位置訊息 break; case Keys.X: //移動飛機 Send("3" + P.Left.ToString() + "|" + ListBox1.SelectedItem); //傳送位置訊息 break; case Keys.Space: //開槍 Send("4" + "S" + "|" + ListBox1.SelectedItem); //傳送開槍訊息 break; } Button2.Select(); //轉移焦點到Button2 } }
void engine_SpeechRecognized(object sender, SpeechRecognizedEventArgs e) { string speech = e.Result.Text; textBox6.Text += speech + "\r\n"; switch (speech) { case "check user": button3.PerformClick(); break; case "add id": AddId(); break; case "add name": AddName(); break; case "add password": AddPass(); break; case "add email": AddEmail(); break; case "add number": AddNumber(); break; case "confirm registration": //case "confirm": Button1.PerformClick(); break; //case "back": case "go back": Button2.PerformClick(); break; } }
public void CallAFriend() { Button1.GetComponent <Button>().enabled = false; Button2.GetComponent <Button>().enabled = false; Button3.GetComponent <Button>().enabled = false; Button4.GetComponent <Button>().enabled = false; Panel.SetActive(true); int Chance = Random.Range(0, 10); if (Chance == 5) { FriendAdviceText.text = "Мисля, че верният" + "\n" + "отговор е: " + QuestionManager.currentQuestion.answerB; } else { FriendAdviceText.text = "Мисля, че верният" + "\n" + "отговор е: " + QuestionManager.currentQuestion.answerA; } }
void ReleaseDesignerOutlets() { if (Button2 != null) { Button2.Dispose(); Button2 = null; } if (ChangeButton != null) { ChangeButton.Dispose(); ChangeButton = null; } if (HiLabel != null) { HiLabel.Dispose(); HiLabel = null; } }
public ConverterDigits() { TBLayout.SuspendLayout(); Controls.Add(TBLayout); Controls.Add(TextArea); Controls.Add(TextLine); Name = "ConverterDigits"; Button7.AddColor1(); Button7.Click += new EventHandler(InsertText); Button8.AddColor1(); Button8.Click += new EventHandler(InsertText); Button9.AddColor1(); Button9.Click += new EventHandler(InsertText); ButtonBackspace.AddColor1(); ButtonBackspace.Click += new EventHandler(Backspace); ButtonC.AddColor1(); ButtonC.Click += new EventHandler(InsertText); ButtonD.AddColor1(); ButtonD.Click += new EventHandler(InsertText); ButtonDelete.AddColor1(); ButtonDelete.Click += new EventHandler(Delete); ButtonEnter.AddColor1(); ButtonEnter.Click += new EventHandler(GetAnswer); ButtonI.AddColor1(); ButtonI.Click += new EventHandler(InsertText); ButtonL.AddColor1(); ButtonL.Click += new EventHandler(InsertText); ButtonM.AddColor1(); ButtonM.Click += new EventHandler(InsertText); ButtonV.AddColor1(); ButtonV.Click += new EventHandler(InsertText); ButtonX.AddColor1(); ButtonX.Click += new EventHandler(InsertText); Button0.AddColor1(); Button0.Click += new EventHandler(InsertText); Button1.AddColor1(); Button1.Click += new EventHandler(InsertText); Button2.AddColor1(); Button2.Click += new EventHandler(InsertText); Button3.AddColor1(); Button3.Click += new EventHandler(InsertText); Button4.AddColor1(); Button4.Click += new EventHandler(InsertText); Button5.AddColor1(); Button5.Click += new EventHandler(InsertText); Button6.AddColor1(); Button6.Click += new EventHandler(InsertText); TextArea.AddColor1(); TextLine.AddColor1(); TBLayout.Controls.AddRange(new Control[] { Button7, Button8, Button9, ButtonD, ButtonEnter, Button4, Button5, Button6, ButtonC, ButtonBackspace, Button1, Button2, Button3, ButtonL, ButtonDelete, Button0, ButtonI, ButtonV, ButtonX, ButtonM }); ResumeLayout(false); PerformLayout(); TBLayout.ResumeLayout(false); }
private void button_GotFocus(object sender, EventArgs e) { Button2 btn = sender as Button2; SymbolInfo info = btn.Tag as SymbolInfo; btn.BorderColor = System.Drawing.Color.Red; if (info != null) { this.textBoxName.Text = info.Text; } for (int i = 0; i < this.buttons.Length; i++) { if (btn == this.buttons[i]) { this.currentSymbolInPage = i; UpdateSelectedSymbolIndex(); } this.buttons[i].Update(); } }
private void SetButtons(int i) { Button1.GetComponent <Button>().GetComponentInChildren <Text>().text = OdpA[numbers[i]]; Button2.GetComponent <Button>().GetComponentInChildren <Text>().text = OdpB[numbers[i]]; Button3.GetComponent <Button>().GetComponentInChildren <Text>().text = OdpC[numbers[i]]; Button4.GetComponent <Button>().GetComponentInChildren <Text>().text = OdpD[numbers[i]]; Pytanie.GetComponent <Text>().text = Pyt[numbers[i]]; if (imageSrc[numbers[i]] == "NULL") { image.GetComponent <Image>().sprite = null; Pytanie.GetComponent <RectTransform>().localPosition = new Vector3(0, 550, 0); image.SetActive(false); } else { image.SetActive(true); image.GetComponent <RectTransform>().localPosition = new Vector3(0, 200, 0); Pytanie.GetComponent <RectTransform>().localPosition = new Vector3(0, 600, 0); image.GetComponent <Image>().sprite = Resources.Load <Sprite>(imageSrc[numbers[i]]); } }
public void MsgBoxButtons(String title, String msg, String button1name, String button2name, View.IOnClickListener btn1lst, View.IOnClickListener btn2lst) { invisible(); Dialog.SetTitle(title); Button1.SetText(button1name, TextView.BufferType.Normal); Button2.SetText(button2name, TextView.BufferType.Normal); Text1.Visibility = ViewStates.Visible; Button1.Visibility = ViewStates.Visible; Button2.Visibility = ViewStates.Visible; Button1.SetOnClickListener(btn1lst); Button2.SetOnClickListener(btn2lst); Text1.SetText(msg, TextView.BufferType.Normal); try { Dialog.Show(); } catch (Exception err) { Log.Debug("xxx", err.Message); } }
private void SwitchButtonsState() { if (Button1.IsEnabled) { Button1.IsEnabled = false; Button2.IsEnabled = false; Button3.IsEnabled = false; Button4.IsEnabled = false; } else { Button1.IsEnabled = true; Button2.IsEnabled = true; Button3.IsEnabled = true; Button4.IsEnabled = true; } Button1.Refresh(); Button2.Refresh(); Button3.Refresh(); Button4.Refresh(); }
public override void ViewDidLoad() { base.ViewDidLoad(); Button0.SetCommand(_viewModel.Button0Action); Button1.SetCommand(_viewModel.Button1Action); Button2.SetCommand(_viewModel.Button2Action); Button3.SetCommand(_viewModel.Button3Action); Button4.SetCommand(_viewModel.Button4Action); Button5.SetCommand(_viewModel.Button5Action); Button6.SetCommand(_viewModel.Button6Action); Button7.SetCommand(_viewModel.Button7Action); Button8.SetCommand(_viewModel.Button8Action); Button9.SetCommand(_viewModel.Button9Action); LeftButton.SetCommand(_viewModel.LeftButtonAction); CommaButton.SetCommand(_viewModel.CommaButtonAction); RightButton.SetCommand(_viewModel.RightButtonAction); AddRecordButton.SetCommand(_viewModel.AddRecordAction); DeleteButton.SetCommand(_viewModel.DeleteButtonAction); IncomeButton.SetCommand(_viewModel.IncomeButtonAction); ExpensesButton.SetCommand(_viewModel.ExpensesButtonAction); TransferButton.SetCommand(_viewModel.TransferButtonAction); _bindings.Add(this.SetBinding(() => _viewModel.SignText, () => SignLabel.Text)); _bindings.Add(this.SetBinding(() => _viewModel.LeftButtonText, () => LeftButtonText)); _bindings.Add(this.SetBinding(() => _viewModel.RightButtonText, () => RightButtonText)); _bindings.Add(this.SetBinding(() => _viewModel.AmountLabelText, () => AmountLabel.Text)); _bindings.Add(this.SetBinding(() => _viewModel.IncomeButtonColor, () => IncomeButton.BackgroundColor).ConvertSourceToTarget(x => x.ToNative())); _bindings.Add(this.SetBinding(() => _viewModel.TransButtonColor, () => TransferButton.BackgroundColor).ConvertSourceToTarget(x => x.ToNative())); _bindings.Add(this.SetBinding(() => _viewModel.ExpensesButtonColor, () => ExpensesButton.BackgroundColor).ConvertSourceToTarget(x => x.ToNative())); HolderView.ApplyStyle(_viewModel.MainStyling); TemplatesButton.ApplyStyle(_viewModel.MainStyling); RightButton.ApplyStyle(_viewModel.MainStyling); LeftButton.ApplyStyle(_viewModel.MainStyling); MiddleImageView.ApplyStyle(_viewModel.MainStyling); }
/// <summary> /// Creates a new instance of the <see cref="MainTabBarView"/> class. /// </summary> public MainTabBarView() { this.logService = DependencyService.Resolve <ILogService>(); // Set default values here. OnPlatform <string> fontFamily = (OnPlatform <string>)Application.Current.Resources["FontAwesomeSolid"]; this.Button1FontFamily = fontFamily; this.Button2FontFamily = fontFamily; this.Button3FontFamily = fontFamily; InitializeComponent(); Button1.SetBinding(Button.CommandProperty, new Binding(nameof(Button1Command), source: this)); Button2.SetBinding(Button.CommandProperty, new Binding(nameof(Button2Command), source: this)); Button3.SetBinding(Button.CommandProperty, new Binding(nameof(Button3Command), source: this)); Button1.SetBinding(Button.FontFamilyProperty, new Binding(nameof(Button1FontFamily), source: this)); Button2.SetBinding(Button.FontFamilyProperty, new Binding(nameof(Button2FontFamily), source: this)); Button3.SetBinding(Button.FontFamilyProperty, new Binding(nameof(Button3FontFamily), source: this)); Button1.SetBinding(Button.TextProperty, new Binding(nameof(Button1Text), source: this)); Button2.SetBinding(Button.TextProperty, new Binding(nameof(Button2Text), source: this)); Button3.SetBinding(Button.TextProperty, new Binding(nameof(Button3Text), source: this)); }
private void QuizLogic(int value) { if (isHintUsed) { Button1.SetActive(true); Button2.SetActive(true); Button3.SetActive(true); Button4.SetActive(true); } currentTime = startTime; if (Pop[numbers[index]] == value) { points++; } if (numbers.Count() > ((index) + 1)) { index++; SetButtons(index); } else { ResultScreen(); } }
private void InitButton(Button2 button, MessageBoxButtonParameters parameters) { button.DialogResult = parameters.Result; button.Visible = parameters.Visible; if (button.Visible) this.SetStyle(button, parameters); button.Text = parameters.Text; }
/// <summary> /// 1:This is my "play" button, this uses StoryBoard and Thickness animations so that once the button is pressed the colorful bars move out of the way of the play area. /// 2:A Doubleanimation is used to "draw" the play area. It changes the opacity of the buttons from 0 to 1. /// 3: Once the buttons been pressed the "play" button becomes dissabled. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void Button_Click_2(object sender, RoutedEventArgs e) { #region The animations for the sticks are here //Animation for stick 1 var sb = new Storyboard(); var ta = new ThicknessAnimation(); ta.BeginTime = new TimeSpan(0); ta.SetValue(Storyboard.TargetNameProperty, "stick1"); Storyboard.SetTargetProperty(ta, new PropertyPath(MarginProperty)); ta.From = new Thickness(94, 0, 182, 0); ta.To = new Thickness(94, 0, 500, 0); ta.Duration = new Duration(TimeSpan.FromSeconds(1)); sb.Children.Add(ta); sb.Begin(this); //Stick2 animation ta.SetValue(Storyboard.TargetNameProperty, "stick2"); Storyboard.SetTargetProperty(ta, new PropertyPath(MarginProperty)); ta.From = new Thickness(86, 0, -93, 0); ta.To = new Thickness(86, 0, 500, 0); ta.Duration = new Duration(TimeSpan.FromSeconds(1)); sb.Children.Add(ta); sb.Begin(this); //Stick3 animation ta.SetValue(Storyboard.TargetNameProperty, "stick3"); Storyboard.SetTargetProperty(ta, new PropertyPath(MarginProperty)); ta.From = new Thickness(91, 0, 127, 0); ta.To = new Thickness(91, 0, 500, 0); ta.Duration = new Duration(TimeSpan.FromSeconds(1)); sb.Children.Add(ta); sb.Begin(this); //Stick4 animation ta.SetValue(Storyboard.TargetNameProperty, "stick4"); Storyboard.SetTargetProperty(ta, new PropertyPath(MarginProperty)); ta.From = new Thickness(94, 0, 296, 0); ta.To = new Thickness(94, 0, 500, 0); ta.Duration = new Duration(TimeSpan.FromSeconds(1)); sb.Children.Add(ta); sb.Begin(this); //Stick5 animation ta.SetValue(Storyboard.TargetNameProperty, "stick5"); Storyboard.SetTargetProperty(ta, new PropertyPath(MarginProperty)); ta.From = new Thickness(328, 0, -113, 0); ta.To = new Thickness(328, 0, 500, 0); ta.Duration = new Duration(TimeSpan.FromSeconds(1)); sb.Children.Add(ta); sb.Begin(this); //Stick6 animation ta.SetValue(Storyboard.TargetNameProperty, "stick6"); Storyboard.SetTargetProperty(ta, new PropertyPath(MarginProperty)); ta.From = new Thickness(47, 0, 74, 0); ta.To = new Thickness(47, 0, 500, 0); ta.Duration = new Duration(TimeSpan.FromSeconds(1)); sb.Children.Add(ta); sb.Begin(this); //Stick7 animation ta.SetValue(Storyboard.TargetNameProperty, "stick7"); Storyboard.SetTargetProperty(ta, new PropertyPath(MarginProperty)); ta.From = new Thickness(298, 0, 1, 0); ta.To = new Thickness(298, 0, 500, 0); ta.Duration = new Duration(TimeSpan.FromSeconds(1)); sb.Children.Add(ta); sb.Begin(this); //Stick8 animation ta.SetValue(Storyboard.TargetNameProperty, "stick8"); Storyboard.SetTargetProperty(ta, new PropertyPath(MarginProperty)); ta.From = new Thickness(300, 0, -113, 0); ta.To = new Thickness(300, 0, 500, 0); ta.Duration = new Duration(TimeSpan.FromSeconds(1)); sb.Children.Add(ta); sb.Begin(this); //Stick 9 ta.SetValue(Storyboard.TargetNameProperty, "stick9"); Storyboard.SetTargetProperty(ta, new PropertyPath(MarginProperty)); ta.From = new Thickness(47, 0, -165, 0); ta.To = new Thickness(47, 0, 500, 0); ta.Duration = new Duration(TimeSpan.FromSeconds(1)); sb.Children.Add(ta); sb.Begin(this); #endregion #region Show the game area DoubleAnimation da = new DoubleAnimation(); da.From = 0; da.To = 1; da.Duration = new Duration(TimeSpan.FromSeconds(2)); Button0.BeginAnimation(OpacityProperty, da); Button1.BeginAnimation(OpacityProperty, da); Button2.BeginAnimation(OpacityProperty, da); Button3.BeginAnimation(OpacityProperty, da); Button4.BeginAnimation(OpacityProperty, da); Button5.BeginAnimation(OpacityProperty, da); Button6.BeginAnimation(OpacityProperty, da); Button7.BeginAnimation(OpacityProperty, da); Button8.BeginAnimation(OpacityProperty, da); #endregion #region disable the play button PlayButton.IsEnabled = false; PlayButton.Background = Brushes.Gray; #endregion }
void ReleaseDesignerOutlets() { if (Button0 != null) { Button0.Dispose(); Button0 = null; } if (Button1 != null) { Button1.Dispose(); Button1 = null; } if (Button2 != null) { Button2.Dispose(); Button2 = null; } if (Button3 != null) { Button3.Dispose(); Button3 = null; } if (Button4 != null) { Button4.Dispose(); Button4 = null; } if (Button5 != null) { Button5.Dispose(); Button5 = null; } if (Button6 != null) { Button6.Dispose(); Button6 = null; } if (Button7 != null) { Button7.Dispose(); Button7 = null; } if (Button8 != null) { Button8.Dispose(); Button8 = null; } if (Button9 != null) { Button9.Dispose(); Button9 = null; } if (ButtonAsterisc != null) { ButtonAsterisc.Dispose(); ButtonAsterisc = null; } if (ButtonSharp != null) { ButtonSharp.Dispose(); ButtonSharp = null; } if (CallButton != null) { CallButton.Dispose(); CallButton = null; } if (Display != null) { Display.Dispose(); Display = null; } if (PhoneNumberText != null) { PhoneNumberText.Dispose(); PhoneNumberText = null; } if (TranslateButton != null) { TranslateButton.Dispose(); TranslateButton = null; } }
// Update is called once per frame void Update() { if (isActive == false && (Button1.GetComponent <Object_Button_Trigger>().activated == true || Button2.GetComponent <Object_Button_Trigger>().activated == true)) { scrambleZone.SetActive(false); Timer = 8; isActive = true; Door1.GetComponent <Object_Door>().DoorSwitch(); Door2.GetComponent <Object_Door>().DoorSwitch(); bopity = true; } if (isActive) { Timer -= Time.deltaTime; if (Timer <= 2 && bopity == true) { BipBop.Play(); bopity = false; } if (Timer <= 0) { scrambleZone.SetActive(true); isActive = false; Door1.GetComponent <Object_Door>().DoorSwitch(); Door2.GetComponent <Object_Door>().DoorSwitch(); } } }
public void FirstClick() { Progress = 2; Button1.GetComponent <Button>().enabled = false; Button2.GetComponent <Button>().enabled = true; }
void engine3_SpeechRecognized(object sender, SpeechRecognizedEventArgs e) { string speech = e.Result.Text; textBox3.Text += speech + "\r\n"; switch (speech) { case "clear": TextBox2.Text = ""; break; case "erase": if (TextBox2.Text.Length > 0) { TextBox2.Text = TextBox2.Text.Substring(0, (TextBox2.Text.Length - 1)); } break; case "a": TextBox2.Text += "a"; break; case "b": TextBox2.Text += "b"; break; case "c": TextBox2.Text += "c"; break; case "d": TextBox2.Text += "d"; break; case "e": TextBox2.Text += "e"; break; case "f": TextBox2.Text += "f"; break; case "g": TextBox2.Text += "g"; break; case "h": TextBox2.Text += "h"; break; case "i": TextBox2.Text += "i"; break; case "j": TextBox2.Text += "j"; break; case "k": TextBox2.Text += "k"; break; case "l": TextBox2.Text += "l"; break; case "m": TextBox2.Text += "m"; break; case "n": TextBox2.Text += "n"; break; case "o": TextBox2.Text += "o"; break; case "p": TextBox2.Text += "p"; break; case "q": TextBox2.Text += "q"; break; case "r": TextBox2.Text += "r"; break; case "s": TextBox2.Text += "s"; break; case "t": TextBox2.Text += "t"; break; case "u": TextBox2.Text += "u"; break; case "v": TextBox2.Text += "v"; break; case "w": TextBox2.Text += "w"; break; case "x": TextBox2.Text += "x"; break; case "y": TextBox2.Text += "y"; break; case "z": TextBox2.Text += "z"; break; case "one": TextBox2.Text += "1"; break; case "two": TextBox2.Text += "2"; break; case "three": TextBox2.Text += "3"; break; case "four": TextBox2.Text += "4"; break; case "five": TextBox2.Text += "5"; break; case "six": TextBox2.Text += "6"; break; case "seven": TextBox2.Text += "7"; break; case "eight": TextBox2.Text += "8"; break; case "nine": TextBox2.Text += "9"; break; case "zero": TextBox2.Text += "0"; break; case "dot": TextBox2.Text += "."; break; case "at": TextBox2.Text += "@"; break; case "star": TextBox2.Text += "*"; break; case "hash": TextBox2.Text += "#"; break; case "dollar": TextBox2.Text += "$"; break; case "parcent": TextBox2.Text += "%"; break; case "login": case "log in": engine2.Dispose(); engine.RecognizeAsync(RecognizeMode.Multiple); Button1.PerformClick(); break; case "show": case "show password": case "hide": case "hide password": button3.PerformClick(); break; case "add id": engine2.Dispose(); AddId(); break; case "registration": case "go to registration": engine2.Dispose(); engine.RecognizeAsync(RecognizeMode.Multiple); Button2.PerformClick(); break; } }
protected void Button2_Click(object sender, EventArgs e) { if (Session["id"] == null) { ScriptManager.RegisterStartupScript(Button2, Button2.GetType(), "alert", "alert('Sorry you stay too long!')", true); Response.Redirect("home.aspx"); } else { string uid = Session["id"].ToString(); Session["id"] = uid; bool check_db = false; SqlDataSource sql_f = new SqlDataSource(); sql_f.ConnectionString = System.Web.Configuration.WebConfigurationManager.ConnectionStrings["connStr"].ConnectionString; sql_f.SelectCommand = "select id from user_information_store"; sql_f.SelectCommand += " where uid='" + uid + "';"; sql_f.DataBind(); DataView ict_f = (DataView)sql_f.Select(DataSourceSelectArguments.Empty); if (ict_f.Count > 0) { check_db = true; } if (check_db) { string uisid = ict_f.Table.Rows[0]["id"].ToString(); string bank_name = bank_name_TextBox.Text.Replace("\'", "").Replace("\"", "").Replace("`", "").Trim(); string bank_name_detail = bank_name_detail_TextBox.Text.Replace("\'", "").Replace("\"", "").Replace("`", "").Trim(); string bank_number = bank_number_TextBox.Text.Replace("\'", "").Replace("\"", "").Replace("`", "").Trim(); string bank_person = bank_person_TextBox.Text.Replace("\'", "").Replace("\"", "").Replace("`", "").Trim(); int bank_type = 0, bank_type_detail = 0; bool check_type0_Image = false, check_type1_Image = false, check_type2_Image = false , check_bank_type = false, check_bank_type_detail = false, check_bank_name = false, check_bank_name_detail = false , check_bank_number = false, check_bank_person = false; if (type0_Image.ImageUrl.ToString() != "") { check_type0_Image = true; image_Label.Text = ""; } else { image_Label.Text = "This image not upload."; } if (type1_Image.ImageUrl.ToString() != "") { check_type1_Image = true; image_Label0.Text = ""; } else { image_Label0.Text = "This image not upload."; } if (type2_Image.ImageUrl.ToString() != "") { check_type2_Image = true; image_Label1.Text = ""; } else { image_Label1.Text = "This image not upload."; } //if (bank_type_RadioButtonList.SelectedIndex > -1) //{ // bank_type = bank_type_RadioButtonList.SelectedIndex; // check_bank_type = true; // bank_type_Label.Text = ""; //} //else //{ // bank_type_Label.Text = "Bank type no select."; //} //if (bank_type_detail_RadioButtonList.SelectedIndex > -1) //{ // bank_type_detail = bank_type_detail_RadioButtonList.SelectedIndex; // check_bank_type_detail = true; // bank_type_detail_Label.Text = ""; //} //else //{ // bank_type_detail_Label.Text = "Bank type detail no select."; //} //if (bank_name != "") //{ // check_bank_name = true; // bank_name_Label.Text = ""; //} //else //{ // bank_name_Label.Text = "Bank name have special word or not write."; //} //if (bank_name_detail != "") //{ // check_bank_name_detail = true; // bank_name_detail_Label.Text = ""; //} //else //{ // bank_name_detail_Label.Text = "Bank name detail have special word or not write."; //} //if (bank_number != "") //{ // try // { // int number = Convert.ToInt32(bank_number); // check_bank_number = true; // bank_number_Label.Text = ""; // } // catch (Exception ex) // { // bank_number_Label.Text = "Bank number is not number."; // return; // throw ex; // } //} //else //{ // bank_number_Label.Text = "Bank number have special word or not write."; //} //if (bank_person != "") //{ // check_bank_person = true; // bank_person_Label.Text = ""; //} //else //{ // bank_person_Label.Text = "Bank person have special word or not write."; //} //if (check_type0_Image && check_type1_Image && check_type2_Image && check_bank_person && // check_bank_number && check_bank_name_detail && check_bank_name && check_bank_type_detail && // check_bank_type) if (check_type0_Image && check_type1_Image && check_type2_Image) { //SqlDataSource sql_update = new SqlDataSource(); //sql_update.ConnectionString = System.Web.Configuration.WebConfigurationManager.ConnectionStrings["connStr"].ConnectionString; //sql_update.UpdateCommand = "update user_information_store"; //sql_update.UpdateCommand += " set bank_type='" + bank_type + "',bank_type_detail='" + bank_type_detail + "',bank_name='" + bank_name + "'"; //sql_update.UpdateCommand += ",bank_name_detail='" + bank_name_detail + "',bank_number='" + bank_number + "',bank_person='" + bank_person + "'"; //sql_update.UpdateCommand += " where id='" + uisid + "';"; //sql_update.Update(); sql_f = new SqlDataSource(); sql_f.ConnectionString = System.Web.Configuration.WebConfigurationManager.ConnectionStrings["connStr"].ConnectionString; sql_f.SelectCommand = "select id from user_information_store_important_image"; sql_f.SelectCommand += " where uisid='" + uisid + "';"; sql_f.DataBind(); ict_f = (DataView)sql_f.Select(DataSourceSelectArguments.Empty); if (ict_f.Count == 0) { SqlDataSource sql_insert = new SqlDataSource(); sql_insert.ConnectionString = System.Web.Configuration.WebConfigurationManager.ConnectionStrings["connStr"].ConnectionString; sql_insert.InsertCommand = "insert into user_information_store_important_image(uisid,type,filename)"; sql_insert.InsertCommand += " values('" + uisid + "','0','" + type0_Image.ImageUrl.ToString() + "');"; sql_insert.Insert(); sql_insert = new SqlDataSource(); sql_insert.ConnectionString = System.Web.Configuration.WebConfigurationManager.ConnectionStrings["connStr"].ConnectionString; sql_insert.InsertCommand = "insert into user_information_store_important_image(uisid,type,filename)"; sql_insert.InsertCommand += " values('" + uisid + "','1','" + type1_Image.ImageUrl.ToString() + "');"; sql_insert.Insert(); sql_insert = new SqlDataSource(); sql_insert.ConnectionString = System.Web.Configuration.WebConfigurationManager.ConnectionStrings["connStr"].ConnectionString; sql_insert.InsertCommand = "insert into user_information_store_important_image(uisid,type,filename)"; sql_insert.InsertCommand += " values('" + uisid + "','2','" + type2_Image.ImageUrl.ToString() + "');"; sql_insert.Insert(); bank_name_TextBox.Text = ""; bank_name_detail_TextBox.Text = ""; bank_number_TextBox.Text = ""; bank_person_TextBox.Text = ""; type0_Image.ImageUrl = ""; type1_Image.ImageUrl = ""; type2_Image.ImageUrl = ""; bank_type_detail_RadioButtonList.SelectedIndex = -1; bank_type_RadioButtonList.SelectedIndex = -1; result_Label.Text = "Success registered."; Response.Redirect("registered_1_3.aspx"); } } else { result_Label.Text = "登録に失敗しました。"; } } else { result_Label.Text = "登録に失敗しました。"; } } }
public MainWindow() { InitializeComponent(); Button2.AddHandler(Button.MouseUpEvent, new MouseButtonEventHandler(Button2_MouseUp), true); }
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); }