private void btnIniciarJogo_Click(object sender, EventArgs e) { if (this.txtNomeJogador.Text != "") { string Aux1; string[] Aux2; for (int i = 0; i < listView1.Items.Count; i++) { if (listView1.Items[i].Focused == true) { this.idPartida = listView1.Items[i].Text; break; } } Aux1 = Jogo.Entrar(Convert.ToInt32(this.idPartida), this.txtNomeJogador.Text, this.senhaPartida); Aux2 = Aux1.Split(','); if (Aux1.Substring(0, 4) == "ERRO") { MessageBox.Show("Não foi possivel entrar na partida"); return; } this.idJogador = Aux2[0]; this.senhaJogador = Aux2[1]; kill = false; this.Close(); } else { MessageBox.Show("Digite um Nome e Senha para entrar na partida"); } }
private void button1_Click(object sender, EventArgs e) { string Aux1; string[] Aux2; string[] Aux3; string[] Aux4; listView1.Items.Clear(); Aux1 = Jogo.ListarPartidas(); Aux1 = Aux1.Replace("\r", ""); Aux2 = Aux1.Split('\n'); ListViewItem itm; for (int i = 0; i < Aux2.Length - 1; i++) { Aux3 = Aux2[i].Split(','); Aux4 = Aux3; if (Aux3[0] == "A") { Aux4[0] = Aux3[1]; Aux4[1] = Aux3[3]; Aux4[2] = Aux3[2]; itm = new ListViewItem(Aux4); listView1.Items.Add(itm); } } }
public ClassA(Aux1 d) : this() { if (d == null) throw new Exception("Related should not be null"); this.Data = d; }
public ClassA(Aux1 d) : this() { if (d == null) { throw new Exception("Related should not be null"); } this.Data = d; }
public ClassA.Aux1 Method1() { var a1 = new Aux1() { Number = 1 }; return(new Aux1() { Number = 2, Related = a1 }); }
public ClassA() { this.NumberA = 10; this.StringA = "Str"; this.BoolA = true; this.DoubleA = Double.PositiveInfinity; this.DecimalA = Decimal.MinusOne; this.Data = new Aux1() { Number = 700 }; }
private void btnEntrarJogo_Click(object sender, EventArgs e) { if (this.txtNomeJogador.Text != "" && this.idPartida != String.Empty) { string Aux1; string[] Aux2; Aux1 = Jogo.Entrar(Convert.ToInt32(this.idPartida), this.txtNomeJogador.Text, this.senhaPartida); Aux2 = Aux1.Split(','); this.idJogador = Aux2[0]; this.senhaJogador = Aux2[1]; this.Close(); } else { MessageBox.Show("Digite um Nome e Senha para entrar na partida"); } }
/* public static bool repetido4(LinkedList) * { * foreach (ListaEstados nodo in ESTADOS) * { * if (e==nodo.GetEstado()) * { * return true; * } * } * return false; * } */ public bool CompararListas(LinkedList <NodoThomson> L, LinkedList <NodoThomson> L2) { bool aux = false; foreach (NodoThomson Aux1 in L) { foreach (NodoThomson AUX2 in L2) { if (Aux1.GetEstado() == AUX2.GetEstado()) { aux = true; } else { return(false); } } } return(aux); }
public static int DoSomething <T>(IMatchDispatcherMessages matcher, Class1.Class2 cls, Class2 cls1, Aux1.Aux2 <int> aux1, Aux2 <int> .Aux1 aux2) { var a = new Aux1(); var a1 = new Aux2 <int>(); Test1Method(); Test1Method2 <string>(); var c6 = new Class1.Class2.Class3.Class4(); matcher.DoSomething <T>(null); var c1 = new Bridge1852Test1 <int> .Aux1(); var c2 = new Bridge1852DispatcherMessageExtensions.Class1(); var c3 = new Bridge1852DispatcherMessageExtensions.Class1.Class2(); var c4 = new Class2(); var c5 = new Class1.Class2(); return(1); }
private void Entrar_Nova_Load(object sender, EventArgs e) { string Aux1; string[] Aux2; string[] Aux3; string[] Aux4; listView1.View = View.Details; listView1.GridLines = true; listView1.FullRowSelect = true; listView1.MultiSelect = false; //Add column header listView1.Columns.Add("ID", 60, HorizontalAlignment.Center); listView1.Columns.Add("NOME", 150, HorizontalAlignment.Center); listView1.Columns.Add("CRIAÇÃO", 78, HorizontalAlignment.Center); Aux1 = Jogo.ListarPartidas(); Aux1 = Aux1.Replace("\r", ""); Aux2 = Aux1.Split('\n'); ListViewItem itm; for (int i = 0; i < Aux2.Length - 1; i++) { Aux3 = Aux2[i].Split(','); Aux4 = Aux3; if (Aux3[0] == "A") { Aux4[0] = Aux3[1]; Aux4[1] = Aux3[3]; Aux4[2] = Aux3[2]; itm = new ListViewItem(Aux4); listView1.Items.Add(itm); } } }
// [#89] public ClassA(params object[] p) : this() { if (p == null || p.Length < 6) { throw new Exception("Should pass six parameters"); } if (p[0] is int) { this.NumberA = (int)p[0]; } if (p[1] is string) { this.StringA = (string)p[1]; } if (p[2] is bool) { this.BoolA = (bool)p[2]; } if (p[3] is double) { this.DoubleA = (double)p[3]; } if (p[4] is decimal) { this.DecimalA = (decimal)p[4]; } if (p[5] is Aux1) { this.Data = (Aux1)p[5]; } }
public Class64(Aux1 related) { }
public void Method1(Aux1 d) { }
public ClassA.Aux1 Method1() { var a1 = new Aux1() { Number = 1 }; return new Aux1() { Number = 2, Related = a1 }; }