public override void ViewDidLoad() { base.ViewDidLoad(); NavigationItem.SetRightBarButtonItem(new UIBarButtonItem("Tweet", UIBarButtonItemStyle.Bordered, (sender, e) => ViewModel.DoShareGeneral()), false); // Perform any additional setup after loading the view, typically from a nib. Button1.SetImage(UIImage.FromFile("ConfResources/Images/appbar.calendar.png"), UIControlState.Normal); Button2.SetImage(UIImage.FromFile("ConfResources/Images/appbar.calendar.png"), UIControlState.Normal); Button3.SetImage(UIImage.FromFile("ConfResources/Images/appbar.calendar.png"), UIControlState.Normal); Button4.SetImage(UIImage.FromFile("ConfResources/Images/appbar.people.png"), UIControlState.Normal); Button5.SetImage(UIImage.FromFile("ConfResources/Images/appbar.database.png"), UIControlState.Normal); this.AddBindings(new Dictionary <object, string>() { { Label1, "Text TextSource,Converter=Language, ConverterParameter='ByDay'" }, { Label2, "Text TextSource,Converter=Language, ConverterParameter='BySpeaker'" }, { Label3, "Text TextSource,Converter=Language, ConverterParameter='ByTopic'" }, { Button1, "Title TextSource,Converter=Language, ConverterParameter='Thursday'" }, { Button2, "Title TextSource,Converter=Language, ConverterParameter='Friday'" }, { Button3, "Title TextSource,Converter=Language, ConverterParameter='Saturday'" }, { Button4, "Title TextSource,Converter=Language, ConverterParameter='Speakers'" }, { Button5, "Title TextSource,Converter=Language, ConverterParameter='Topics'" }, }); this.AddBindings(new Dictionary <object, string>() { { Button1, "TouchUpInside ShowThursdayCommand" }, { Button2, "TouchUpInside ShowFridayCommand" }, { Button3, "TouchUpInside ShowSaturdayCommand" }, { Button4, "TouchUpInside ShowSpeakersCommand" }, { Button5, "TouchUpInside ShowTopicsCommand" }, }); }
public override void ViewDidLoad() { base.ViewDidLoad(); // Perform any additional setup after loading the view, typically from a nib. Button1.SetImage(UIImage.FromFile("ConfResources/Images/appbar.people.png"), UIControlState.Normal); Button2.SetImage(UIImage.FromFile("ConfResources/Images/appbar.city.png"), UIControlState.Normal); Button3.SetImage(UIImage.FromFile("ConfResources/Images/appbar.bus.png"), UIControlState.Normal); Button4.SetImage(UIImage.FromFile("ConfResources/Images/appbar.questionmark.rest.png"), UIControlState.Normal); this.AddLangBindings(new Dictionary <object, string>() { { MainLabel, "Text AboutSQLBits" }, { Button1, "Title Sponsors" }, { Button2, "Title Exhibitors" }, { Button3, "Title Map" }, { Button4, "Title About" }, }); this.AddBindings(new Dictionary <object, string>() { { Button1, "TouchUpInside ShowSponsorsCommand" }, { Button2, "TouchUpInside ShowExhibitorsCommand" }, { Button3, "TouchUpInside ShowMapCommand" }, { Button4, "TouchUpInside ShowAboutCommand" }, }); NavigationItem.SetRightBarButtonItem(new UIBarButtonItem("Tweet", UIBarButtonItemStyle.Bordered, (sender, e) => ViewModel.DoShareGeneral()), false); }
public override void ViewDidLoad() { base.ViewDidLoad(); // Perform any additional setup after loading the view, typically from a nib. Button1.SetImage(UIImage.FromFile("ConfResources/Images/appbar.people.png"), UIControlState.Normal); Button2.SetImage(UIImage.FromFile("ConfResources/Images/appbar.city.png"), UIControlState.Normal); Button3.SetImage(UIImage.FromFile("ConfResources/Images/appbar.bus.png"), UIControlState.Normal); Button4.SetImage(UIImage.FromFile("ConfResources/Images/appbar.questionmark.rest.png"), UIControlState.Normal); this.AddBindings(new Dictionary <object, string>() { { MainLabel, "{'Text':{'Path':'TextSource','Converter':'Language','ConverterParameter':'AboutSQLBits'}}" }, { Button1, "{'Title':{'Path':'TextSource','Converter':'Language','ConverterParameter':'Sponsors'}}" }, { Button2, "{'Title':{'Path':'TextSource','Converter':'Language','ConverterParameter':'Exhibitors'}}" }, { Button3, "{'Title':{'Path':'TextSource','Converter':'Language','ConverterParameter':'Map'}}" }, { Button4, "{'Title':{'Path':'TextSource','Converter':'Language','ConverterParameter':'About'}}" }, }); this.AddBindings(new Dictionary <object, string>() { { Button1, "{'TouchDown':{'Path':'ShowSponsorsCommand'}}" }, { Button2, "{'TouchDown':{'Path':'ShowExhibitorsCommand'}}" }, { Button3, "{'TouchDown':{'Path':'ShowMapCommand'}}" }, { Button4, "{'TouchDown':{'Path':'ShowAboutCommand'}}" }, }); NavigationItem.SetRightBarButtonItem(new UIBarButtonItem("Tweet", UIBarButtonItemStyle.Bordered, (sender, e) => ViewModel.ShareGeneralCommand.Execute()), false); }
void Start() { m_ButtonScript3 = m_Button_3.GetComponent <Button3>(); m_ButtonScript4 = m_Button_4.GetComponent <Button4>(); m_ButtonScript5 = m_Button_5.GetComponent <Button5>(); m_ButtonScript6 = m_Button_6.GetComponent <Button6>(); }
public void QuizHint() { bool randomValue = true; int value = 0; while (randomValue) { value = UnityEngine.Random.Range(1, 4); if (value != Pop[numbers[index]]) { break; } } Button1.SetActive(false); Button2.SetActive(false); Button3.SetActive(false); Button4.SetActive(false); Transform panelTransform = GameObject.Find("Buttons").transform; int j = 1; foreach (Transform child in panelTransform) { if (j == value || j == Pop[numbers[index]]) { child.gameObject.SetActive(true); } j++; } isHintUsed = true; }
void ReleaseDesignerOutlets() { if (MainLabel != null) { MainLabel.Dispose(); MainLabel = null; } if (Button4 != null) { Button4.Dispose(); Button4 = null; } if (Button3 != null) { Button3.Dispose(); Button3 = null; } if (Button2 != null) { Button2.Dispose(); Button2 = null; } if (Button1 != null) { Button1.Dispose(); Button1 = null; } }
public override void ViewDidLoad() { base.ViewDidLoad(); NavigationItem.SetRightBarButtonItem(new UIBarButtonItem("Tweet", UIBarButtonItemStyle.Bordered, (sender, e) => ViewModel.ShareGeneralCommand.Execute()), false); #warning Button1 and Button2 need removing from the NIB! Button3.SetImage(UIImage.FromFile("ConfResources/Images/appbar.calendar.png"), UIControlState.Normal); Button4.SetImage(UIImage.FromFile("ConfResources/Images/appbar.people.png"), UIControlState.Normal); Button5.SetImage(UIImage.FromFile("ConfResources/Images/appbar.cow.png"), UIControlState.Normal); this.AddBindings(new Dictionary <object, string>() { { Label1, "{'Text':{'Path':'TextSource','Converter':'Language','ConverterParameter':'ByTime'}}" }, { Label2, "{'Text':{'Path':'TextSource','Converter':'Language','ConverterParameter':'BySpeaker'}}" }, { Label3, "{'Text':{'Path':'TextSource','Converter':'Language','ConverterParameter':'ByTopic'}}" }, { Button3, "{'Title':{'Path':'TextSource','Converter':'Language','ConverterParameter':'Saturday'}}" }, { Button4, "{'Title':{'Path':'TextSource','Converter':'Language','ConverterParameter':'Speakers'}}" }, { Button5, "{'Title':{'Path':'TextSource','Converter':'Language','ConverterParameter':'Topics'}}" }, }); this.AddBindings(new Dictionary <object, string>() { { Button3, "{'TouchDown':{'Path':'ShowSessionsCommand'}}" }, { Button4, "{'TouchDown':{'Path':'ShowSpeakersCommand'}}" }, { Button5, "{'TouchDown':{'Path':'ShowTopicsCommand'}}" }, }); }
private async Task AnimateButtons() { Button1.Scale = 0; Button2.Scale = 0; Button3.Scale = 0; Button4.Scale = 0; Button5.Scale = 0; Button6.Scale = 0; Button7.Scale = 0; Button8.Scale = 0; Button9.Scale = 0; Button0.Scale = 0; ButtonX.Scale = 0; await Task.Delay(300); var tasks = new Task[] { Button1.ScaleTo(1, 200), Button2.ScaleTo(1, 200), Button3.ScaleTo(1, 200), Button4.ScaleTo(1, 200), Button5.ScaleTo(1, 200), Button6.ScaleTo(1, 200), Button7.ScaleTo(1, 200), Button8.ScaleTo(1, 200), Button9.ScaleTo(1, 200), Button0.ScaleTo(1, 200), ButtonX.ScaleTo(1, 200) }; await Task.WhenAll(tasks); }
public static void Back(Object sender, EventArgs e) { ListBox.Hide(); Button1.Show(); Button2.Show(); Button3.Show(); Button4.Hide(); }
public void OnOkClick() { Panel.SetActive(false); Button1.GetComponent <Button>().enabled = true; Button2.GetComponent <Button>().enabled = true; Button3.GetComponent <Button>().enabled = true; Button4.GetComponent <Button>().enabled = true; }
void ReleaseDesignerOutlets() { 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 (Image1 != null) { Image1.Dispose(); Image1 = null; } if (Image2 != null) { Image2.Dispose(); Image2 = null; } if (WebView1 != null) { WebView1.Dispose(); WebView1 = null; } }
public static void StartGame(Object sender, EventArgs e) { Game.Init(MainForm); Button1.Hide(); Button2.Hide(); Button4.Hide(); MainForm.KeyPreview = true; Button3.Location = new Point(0, Game.Height - 60); Game.Draw(); }
async private void Button4Tapp_Tapped(object sender, EventArgs e) { await Button4.FadeTo(0, 300); // fadeto 0% in 300ms Button4.BackgroundColor = Color.Lime; // change background color button4 to lime await Button4.FadeTo(1, 300); // fadeto 100% in 300ms Button4.FadeTo(0, 400); // fadeto 0% in 400ms await Button4.ScaleTo(2, 300); // scale X2 in 300ms }
private bool Handle4() { if (Solution == null || Position == Solution.Length) { return(false); } Button4.AddInteractionPunch(0.2f); Handle(4); return(false); }
/// <summary>添加事件监听</summary> override protected void Awake() { AddListener(); Button1.AddClick(Button1Click); Button2.AddClick(Button2Click); Button3.AddClick(Button3Click); Button4.AddClick(Button4Click); //Button1.GetComponent<Image>().SetSprite("bg", "Common"); Text3.text = GameFrameEntry.GetModule <LangModule>().Get("100"); Refresh(); }
private void Button5_Click(object sender, EventArgs e) { bool Resultado = false; // verifica se houve alguma tentativa de burlar os dados no banco de dados for (int i = 0; i <= ListaPagamento.Count - 1; i++) { Grid1.Focus(); Grid1.CurrentCell = Grid1.Rows[i].Cells[0]; Button4.PerformClick(); } // verifica se existe algum registro para o mês e para o ano - caso não exista, bloqueia o sistema. // select * from tabela where mes=mes_atual and ano=ano_atual for (int i = 0; i <= ListaPagamento.Count - 1; i++) { if ((DateTime.Now.Year == int.Parse(Biblioteca.Desencripta(ListaPagamento[Grid1.CurrentRow.Index].b))) && (DateTime.Now.Month == int.Parse(Biblioteca.Desencripta(ListaPagamento[Grid1.CurrentRow.Index].a)))) { Resultado = true; break; } } if (!Resultado) { MessageBox.Show("Não encontrou um registro com o mês e o ano atual... Sistema deve ser bloqueado."); return; } // caso tenha encontrado o mes e ano, verifica se a data atual É maior que a data do vencimento if (DateTime.Now.Day > int.Parse(Biblioteca.Desencripta(ListaPagamento[Grid1.CurrentRow.Index].c))) { MessageBox.Show("A data atual é maior que a data do vencimento. Será que o cliente já pagou?"); // verifica se o cliente já realizou o pagamento através do campo Liberado if (Biblioteca.Desencripta(ListaPagamento[Grid1.CurrentRow.Index].e) == "N") { MessageBox.Show("O cliente não pagou. Será que o sistema deve ser bloqueado?"); // caso a data atual seja maior ou igual ? data definida para bloqueio, o sistema deve ser bloqueado if (DateTime.Now.Day > int.Parse(Biblioteca.Desencripta(ListaPagamento[Grid1.CurrentRow.Index].d))) { MessageBox.Show("O sistema deve ser bloqueado. Informar o seguinte código para SH: \r\r" + ListaPagamento[Grid1.CurrentRow.Index].f); } } else { MessageBox.Show("O cliente já pagou!"); } } // Exercício: e se o cliente deixar de pagar durante dois meses? }
private void pictureBox1_Click(object sender, EventArgs e) { Label6.Hide(); Panel1.Size = new Size(45, 727); pictureBox1.Hide(); Button1.Hide(); Button2.Hide(); Button3.Hide(); Button4.Hide(); PictureBox2.Show(); DataGridView1.Hide(); }
public MainPageViewModel(INavigation navigation) { //Model→ViewModel this.Label1 = model.ObserveProperty(x => x.Name).ToReactiveProperty(); //Button Button1.Subscribe(x => model.NamePlus(x)); Button2.Subscribe(x => model.NamePlus(x)); Button3.Subscribe(x => model.NamePlus(x)); Button4.Subscribe(x => model.NamePlus(x)); Button5.Subscribe(x => model.NamePlus(x)); //Button(ページ遷移) NextPageButton.Subscribe(async _ => await navigation.PushAsync(new Views.NextPageView())); }
private void PictureBox2_Click(object sender, EventArgs e) { Panel1.Size = new Size(136, 727); Button1.Show(); Button2.Show(); Button3.Show(); Button4.Show(); pictureBox1.Show(); Label6.Show(); PictureBox2.Hide(); }
private void Frm_usuario_Load(object sender, EventArgs e) { // oculta elementos de la interfaz como los botones de guardar actualizar y eliminar 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; }
private void Frm_usuario_Load(object sender, EventArgs e) { // oculta elementos de la interfaz 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; ComboBox2.SelectedIndex = 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; } }
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 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(); } } }
//Timers para animacion private void Timer1_Tick(object sender, EventArgs e) { circularProgressBar1.Value += 1; circularProgressBar1.Text = circularProgressBar1.Value.ToString(); circularProgressBar1.Minimum = 0; circularProgressBar1.Maximum = 100; if (circularProgressBar1.Value == 100) { timer1.Stop(); circularProgressBar1.Value = 0; circularProgressBar1.Text = circularProgressBar1.Value.ToString(); PictureBox1.Show(); circularProgressBar1.Hide(); Button13.Show(); Button6.Hide(); Button4.Hide(); OpenFileDialog buscar = new OpenFileDialog { InitialDirectory = @"C:\Program Files\Game_Booster\Juegos", Title = "Game Booster", CheckFileExists = true, CheckPathExists = true, DefaultExt = "url", Filter = "Ver mas juegos (*.url)|*.url|Todos los juegos (*.lnk)|*.lnk", FilterIndex = 1, }; if (buscar.ShowDialog() == DialogResult.OK) { Process.Start(buscar.FileName); Process process = new Process(); ProcessStartInfo startInfo = new ProcessStartInfo { WindowStyle = ProcessWindowStyle.Hidden, FileName = "cmd.exe", Arguments = @"/C timeout /t 3 /nobreak & TASKKILL /IM explorer.exe /F & exit" }; process.StartInfo = startInfo; process.Start(); } } }
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; }
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 Timer2_Tick(object sender, EventArgs e) { circularProgressBar2.Value += 2; circularProgressBar2.Text = circularProgressBar2.Value.ToString(); circularProgressBar2.Minimum = 0; circularProgressBar2.Maximum = 100; if (circularProgressBar2.Value == 100) { timer2.Stop(); circularProgressBar2.Value = 0; circularProgressBar2.Text = circularProgressBar2.Value.ToString(); Button1.Show(); circularProgressBar2.Hide(); Button6.Show(); Button13.Hide(); Button4.Show(); Process.Start(@"C:\Program Files\Game_Booster\Scrips\cerrar.vbs"); } }
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; }
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; } }