private void button1_Click(object sender, EventArgs e) { localhost.Service1 server = new localhost.Service1(); server.userviews(textBox1.Text); textBox1.Text = " "; MessageBox.Show("Thank You For Your Feedback"); }
private void button1_Click(object sender, EventArgs e) { // localhost try { localhost.Service1 sv = new localhost.Service1(); localhost.ProdutoLoja produtoLoja = new localhost.ProdutoLoja(); localhost.Loja loja = new localhost.Loja(); loja.Cnpj = comboBoxLoja.SelectedValue.ToString(); produtoLoja.Loja = sv.SelectLoja(loja).ElementAt(0); localhost.Produto produto = new localhost.Produto(); produto.CodigoBarra = comboBoxProduto.SelectedValue.ToString(); produtoLoja.Produto = sv.SelectProduto(produto).ElementAt(0); produtoLoja.Preco = float.Parse(inputPreco.Text); String retornoMsg = sv.InsertProdutoLoja(produtoLoja); if (retornoMsg == null || "".Equals(retornoMsg)) { MessageBox.Show("Produto associado a loja com sucesso!"); } else { MessageBox.Show(retornoMsg); } } catch (Exception ex) { MessageBox.Show("Erro ao conectar e inserir " + ex.Message); } }
private void button2_Click(object sender, EventArgs e) { int per_tottal; selected_row = dataGridView1.CurrentCell.RowIndex; DataGridViewRow row = dataGridView1.Rows[selected_row]; localhost.Service1 s = new localhost.Service1(); bool quant_spec = true; if (int.Parse(row.Cells[6].Value.ToString()) < int.Parse(textBox4.Text)) { MessageBox.Show("Required quanitty is too large"); } else { per_tottal = int.Parse(textBox4.Text) * int.Parse(row.Cells[4].Value.ToString()); s.add_order(row.Cells[3].Value.ToString(), comboBox2.Text, int.Parse(textBox4.Text), quant_spec, int.Parse(row.Cells[4].Value.ToString()), quant_spec, per_tottal, quant_spec); t2.Rows.Add(row.Cells[3].Value.ToString(), int.Parse(row.Cells[4].Value.ToString()), quant_spec, comboBox2.Text, int.Parse(textBox4.Text), quant_spec, per_tottal, quant_spec); dataGridView4.DataSource = t2; s.update_Stock(row.Cells[3].Value.ToString(), row.Cells[8].Value.ToString(), int.Parse(textBox4.Text), quant_spec); BindingSource j = new BindingSource(); j.DataSource = s.searchName(textBox12.Text); dataGridView1.DataSource = j; dataGridView1.Columns[1].Visible = false; dataGridView1.Columns[5].Visible = false; dataGridView1.Columns[7].Visible = false; dataGridView4.Columns[2].Visible = false; dataGridView4.Columns[5].Visible = false; dataGridView4.Columns[7].Visible = false; } }
private void btncancel_Click(object sender, EventArgs e) { bool isuname = true, isucode = true; localhost.Service1 ser = new localhost.Service1(); //CancelEvent(string uname, string ucode, string udate, string ereason) // MessageBox.Show("conformed or not", MessageBoxButtons.OKCancel); DialogResult res = MessageBox.Show("Conformed...?", MessageBoxButtons.OKCancel.ToString()); if (res == System.Windows.Forms.DialogResult.OK) { ser.CancelEvent(txtuname.Text, txtucode.Text, txtedate.Text, txtereason.Text, out isuname, out isucode); // ser.Search(txtuname, txtucode, out isuname, out isucode); if (isucode && isuname) { MessageBox.Show(" Event is canceled"); } else { MessageBox.Show(" Your information is not right"); } } else { MessageBox.Show("Event donot cencel"); } }
static void Main(string[] args) { localhost.Service1 srv = new localhost.Service1(); string result = srv.HelloWorld("tang dashi"); Console.WriteLine(result); }
private void button1_Click(object sender, EventArgs e) { localhost.Service1 server = new localhost.Service1(); BindingSource source = new BindingSource(); server.Showproduct(); source.DataSource = server.Showproduct(); dataGridView1.DataSource = source; /*localhost.Service1 server = new localhost.Service1(); * int y; * bool b; * bool c = true; * int i; * server.getlengthofarray(out y, out b); * for (int j = 0; j < y; j++) * { * int a = j; * server.searchitems(int j); * Product t = new Product(); * t = server.searchitems(int j); * t.name = * t.category = * t.id = * t.price = * }*/ }
private void buttonVai_Click(object sender, EventArgs e) { string buscar = textBoxBuscar.Text; try { Produto produto = new Produto(); produto.DescProduto = buscar; localhost.Service1 service1 = new localhost.Service1(); listprodutos = service1.ProdutoListar(produto).ToList(); listViewProduto.Items.Clear(); foreach (var prod in listprodutos) { ListViewItem ItemLV = listViewProduto.Items.Add("" + prod.IdProduto); ItemLV.SubItems.Add(prod.DescProduto); } } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void buttonCadastrar_Click(object sender, EventArgs e) { try { localhost.Produto produto = new localhost.Produto(); produto.CodigoBarra = textBoxCodigo.Text; produto.Nome = textBoxNome.Text; produto.Marca = textBoxMarca.Text; produto.Descricao = textBoxDescricao.Text; localhost.Service1 sv = new localhost.Service1(); String retornoMsg = sv.InsertProduto(produto); if (retornoMsg == null || "".Equals(retornoMsg)) { MessageBox.Show("Produto Cadastrado com Sucesso!"); } else { MessageBox.Show(retornoMsg); } } catch (Exception ex) { throw new Exception("Erro ao conectar e inserir" + ex.Message); } }
private void bunifuFlatButton1_Click(object sender, EventArgs e) { if (bunifuMetroTextbox1.Text == " " && bunifuMetroTextbox2.Text == " " && bunifuMetroTextbox3.Text == " " && bunifuMetroTextbox4.Text == " ") { MessageBox.Show(" Please fill all entries "); } else { localhost.Service1 v = new localhost.Service1(); v.isadd(bunifuMetroTextbox1.Text, bunifuMetroTextbox2.Text, bunifuMetroTextbox3.Text, bunifuMetroTextbox4.Text); MessageBox.Show(bunifuMetroTextbox1.Text, "Successfully register "); bunifuMetroTextbox1.Text = " "; bunifuMetroTextbox2.Text = " "; bunifuMetroTextbox3.Text = " "; bunifuMetroTextbox4.Text = " "; Form8 frm = new Form8(); frm.Show(); this.Hide(); } }
private void btnLogin_Click(object sender, EventArgs e) { if (txtName.Text == "" || txtPassword.Text == "") { MessageBox.Show("Incomplete information"); } else { bool valid = false; bool validS = false; localhost.Service1 server = new localhost.Service1(); server.validUser(txtName.Text, txtPassword.Text, out valid, out validS); if (valid) { MessageBox.Show("Welcome!"); frmUserStores temp = new frmUserStores(); temp.Show(); this.Close(); } else { MessageBox.Show("wrong username or password!"); } } }
private void buttonCadastrar_Click(object sender, EventArgs e) { try { localhost.Loja loja = new localhost.Loja(); loja.Cnpj = textBoxCNPJ.Text; loja.RazaoSocial = textBoxRazaoSocial.Text; loja.NomeFantasia = textBoxFantasia.Text; localhost.Service1 sv = new localhost.Service1(); String retornoMsg = sv.InsertLoja(loja); if (retornoMsg == null || "".Equals(retornoMsg)) { MessageBox.Show("Loja Cadastrada com Sucesso!"); } else { MessageBox.Show(retornoMsg); } } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void Receipt_Load(object sender, EventArgs e) { label1.Text = "Pharmacy System"; label2.Text = DateTime.Now.ToLongDateString(); label3.Text = DateTime.Now.ToLongTimeString(); localhost.Service1 s = new localhost.Service1(); int total_bil = 0; foreach (localhost.OrderClass od in s.showorder()) { total_bil = total_bil + od.Total1; } BindingSource w = new BindingSource(); w.DataSource = s.showorder(); dataGridView1.DataSource = w; label11.Text = "Name"; label12.Text = "Price"; label13.Text = "Type"; label14.Text = "Quantity"; label15.Text = "Total"; dataGridView1.Columns[2].Visible = false; dataGridView1.Columns[4].Visible = false; dataGridView1.Columns[7].Visible = false; label16.Text = "Total Customer bill is : "; label17.Text = total_bil.ToString(); }
private void buttonVai_Click(object sender, EventArgs e) { string buscar = textBoxBuscar.Text; try { Usuario usuario = new Usuario(); usuario.Perfil = new Perfil(); usuario.Nome = "%" + buscar + "%"; localhost.Service1 service1 = new localhost.Service1(); listUsuarios = service1.UsuarioListar(usuario).ToList(); listViewUsuario.Items.Clear(); foreach (var user in listUsuarios) { ListViewItem ItemLV = listViewUsuario.Items.Add("" + user.IdUsuario); ItemLV.SubItems.Add(user.Nome); ItemLV.SubItems.Add(user.Login); ItemLV.SubItems.Add(user.Perfil.DescPerfil); } } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void buttonDeletar_Click(object sender, EventArgs e) { int indexUsuario, idUsuario; Usuario usuarioSelecionado; indexUsuario = listViewUsuario.FocusedItem.Index; usuarioSelecionado = listUsuarios.ElementAt(indexUsuario); idUsuario = usuarioSelecionado.IdUsuario; Usuario usuario = new Usuario(); usuario.IdUsuario = idUsuario; try { localhost.Service1 service1 = new localhost.Service1(); service1.UsuarioDeletar(usuario); MessageBox.Show("Usuário Deletado com Sucesso !", "Ateção", MessageBoxButtons.OK, MessageBoxIcon.Asterisk); LimparTela(); } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void buttonDeletar_Click(object sender, EventArgs e) { int id = 0; string descricao; descricao = textBoxDescricao.Text; if (textBoxId.Text.Length > 0) { id = Int32.Parse(textBoxId.Text); Produto produto = new Produto(); produto.IdProduto = id; produto.DescProduto = descricao; try { localhost.Service1 service1 = new localhost.Service1(); service1.ProdutoDeletar(produto); MessageBox.Show("Produto Deletado com Sucesso !", "Ateção", MessageBoxButtons.OK, MessageBoxIcon.Asterisk); LimparTela(); } catch (Exception ex) { MessageBox.Show(ex.Message); } } else { MessageBox.Show("Escolha um Produto da Lista Para Deletar !", "Ateção", MessageBoxButtons.OK, MessageBoxIcon.Asterisk); } }
private void btnRegister_Click(object sender, EventArgs e) { if (txtUserName.Text == "" || txtPassword.Text == "" || txtContact.Text == "" || txtAnswer.Text == "") { MessageBox.Show("Incomplete Information!"); } else { bool valid = false; bool valids = false; localhost.Service1 server = new localhost.Service1(); server.RegisterAdmin(txtUserName.Text, txtPassword.Text, txtContact.Text, cmbQuestion.Text, txtAnswer.Text, out valid, out valids); if (valid) { MessageBox.Show("Admin Registered!"); } else { MessageBox.Show("Can not register more than one admin!"); } txtUserName.Text = ""; txtPassword.Text = ""; txtContact.Text = ""; txtAnswer.Text = ""; } }
private void button1_Click(object sender, EventArgs e) { localhost.Service1 server = new localhost.Service1(); server.Orderdate(textBox1.Text, textBox2.Text); textBox1.Text = " "; textBox2.Text = " "; }
private void pesquisarButton_Click(object sender, EventArgs e) { try { localhost.Service1 sv = new localhost.Service1(); localhost.ProdutoLoja produtoLoja = new localhost.ProdutoLoja(); listViewProdutoLoja.Items.Clear(); localhost.Produto produto = new localhost.Produto(); produto.Nome = inputPesquisaProduto.Text; foreach (localhost.Produto produtoLista in sv.SelectProduto(produto)) { produtoLoja.Produto = produtoLista; foreach (localhost.ProdutoLoja produtolista in sv.ListProdutoLoja(produtoLoja)) { ListViewItem lista = listViewProdutoLoja.Items.Add(produtolista.Produto.Id.ToString()); lista.SubItems.Add(produtolista.Produto.Nome); lista.SubItems.Add(produtolista.Produto.Descricao); lista.SubItems.Add(produtolista.Loja.RazaoSocial); lista.SubItems.Add(produtolista.Preco.ToString()); } } } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void buttonCadastrar_Click(object sender, EventArgs e) { try { localhost.Usuario usuario = new localhost.Usuario(); usuario.Cpf = textBoxCpf.Text; usuario.Nome = textBoxNome.Text; usuario.Telefone = textBoxTelefone.Text; usuario.Endereco = textBoxEndereco.Text; usuario.Senha = textBoxSenha.Text; localhost.Service1 sv = new localhost.Service1(); String retornoMsg = sv.InsertUsuario(usuario); if (retornoMsg == null || "".Equals(retornoMsg)) { MessageBox.Show("Usuario Cadastrado com Sucesso!"); } else { MessageBox.Show(retornoMsg); } } catch (Exception ex) { throw new Exception("Erro ao conectar e inserir" + ex.Message); } }
private void buttonCadastrar_Click(object sender, EventArgs e) { try { localhost.Cartao cartao = new localhost.Cartao(); localhost.Usuario usuario = new localhost.Usuario(); cartao.Numero = textBoxNumero.Text; cartao.Bandeira = textBoxBandeira.Text; cartao.CodigoSeguranca = textBoxCodigoSeguranca.Text; usuario.UsuarioId = Convert.ToInt32(comboBoxUsuario.SelectedValue); cartao.Usuario = usuario; localhost.Service1 sv = new localhost.Service1(); String retornoMsg = sv.InsertCartao(cartao); if (retornoMsg == null || "".Equals(retornoMsg)) { MessageBox.Show("Cartão Cadastrado com Sucesso!"); } else { MessageBox.Show(retornoMsg); } } catch (Exception ex) { MessageBox.Show("Erro ao conectar e inserir " + ex.Message); } }
private void btnAdd_Click(object sender, System.EventArgs e) { localhost.Service1 w = new localhost.Service1(); int ans = w.Add(int.Parse(txtNumb1.Text), int.Parse(txtNumb2.Text)); lblAns.Text = ans.ToString(); }
protected void Page_Load(object sender, EventArgs e) { authentication = Convert.ToString(Session["authenticationLevel"]); int.TryParse(Request.QueryString["producttypeId"], out productId); lh = new localhost.Service1(); initialize(); }
public ListViewModel() { try { service = new localhost.Service1(); List<localhost.Book> l = new List<localhost.Book>(); l = service.ReadSome().ToList<localhost.Book>(); foreach (localhost.Book b in l) { _list.Add(b); } } catch (Exception) { MessageBox.Show("You need to run a web service to run this"); } ////List<localhost.Review> rl = new List<localhost.Review>(); ////rl = service.FindReviewsByBookId(SelectedBook.Id).ToList<localhost.Review>(); //foreach (localhost.Review review in rl) //{ // _reviewList.Add(review); //} }
private void button1_Click(object sender, EventArgs e) { localhost.Service1 server = new localhost.Service1(); bool is_validuser; bool is_validPassword; //bool is_code; server.is_validAdmin(txtadm.Text, txtdp.Text, txtdc.Text, out is_validPassword, out is_validuser); if (is_validuser && is_validPassword) { MessageBox.Show("valid user"); Admin_Page a = new Admin_Page(); this.Hide(); a.Show(); } else { MessageBox.Show("Invalid user"); } txtadm.Text = ""; txtdc.Text = ""; txtdp.Text = ""; string name = txtadm.Text; string password = txtdp.Text; string securitycode = txtdc.Text; /* MessageBox.Show("Valid"); * string name = txtadm.Text; * string password = txtdp.Text; * string securitycode = txtdc.Text; * * MessageBox.Show("Valid");*/ }
private void buttonCadastrarCarrinho_Click(object sender, EventArgs e) { try { localhost.Carrinho carrinho = new localhost.Carrinho(); localhost.Cartao cartao = new localhost.Cartao(); localhost.Usuario usuario = new localhost.Usuario(); usuario.UsuarioId = Convert.ToInt32(comboBoxUsuario.SelectedValue); cartao.Id = Convert.ToInt32(comboBoxCartao.SelectedValue); carrinho.UsuarioId = usuario; carrinho.Cartaocreditoid = cartao; localhost.Service1 sv = new localhost.Service1(); String retornoMsg = sv.InsertCarrinho(carrinho); if (retornoMsg == "" || "".Equals(retornoMsg)) { MessageBox.Show("Carrinho cadastrado com sucesso"); } else { MessageBox.Show(retornoMsg); } } catch (Exception ex) { MessageBox.Show("Erro ao conectar e inserir" + ex.Message); } }
private void bunifuFlatButton1_Click(object sender, EventArgs e) { localhost.Service1 v = new localhost.Service1(); bool is_exist = false;; foreach (localhost.CustClass1 cust in v.showAll2()) { if (cust.Name == bunifuMetroTextbox1.Text && cust.Password == bunifuMetroTextbox2.Text) { is_exist = true; } } if (is_exist) { MessageBox.Show("Already exist Try something different "); } else { v.isad(bunifuMetroTextbox1.Text, bunifuMetroTextbox2.Text, bunifuMetroTextbox3.Text, bunifuMetroTextbox4.Text); MessageBox.Show("ADDED"); bunifuMetroTextbox1.Text = " "; bunifuMetroTextbox2.Text = " "; bunifuMetroTextbox3.Text = " "; bunifuMetroTextbox4.Text = " "; } }
private void bunifuFlatButton1_Click(object sender, EventArgs e) { if (bunifuMetroTextbox1.Text == " " || bunifuMetroTextbox2.Text == " ") { MessageBox.Show(" Please Enter all entries"); } else { localhost.Service1 v = new localhost.Service1(); bool islogin = false; bool isloginresult = false; v.islogin(bunifuMetroTextbox1.Text, bunifuMetroTextbox2.Text, out islogin, out isloginresult); if (islogin) { bunifuMetroTextbox1.Text = " "; bunifuMetroTextbox2.Text = " "; MessageBox.Show(" welcome "); Form2 frm = new Form2(); frm.Show(); this.Hide(); } else { MessageBox.Show(" Invalid Name or Password "); } } }
private void frmAdminShowStore_Load(object sender, EventArgs e) { localhost.Service1 sc = new localhost.Service1(); BindingSource s = new BindingSource(); s.DataSource = sc.shoowstores(); Gvshowallstore.DataSource = s; }
private void frmOrders_Load(object sender, EventArgs e) { localhost.Service1 ser = new localhost.Service1(); foreach (localhost.Store s in ser.shoowstores()) { cmbStores.Items.Add(s.Name); } }
private void Addproduct_Load(object sender, EventArgs e) { localhost.Service1 sc = new localhost.Service1(); foreach (localhost.Store s in sc.shoowstores()) { comboBox1.Items.Add(s.Name); } }
private void button1_Click(object sender, EventArgs e) { BindingSource source = new BindingSource(); localhost.Service1 server = new localhost.Service1(); source.DataSource = server.ShowOrder(); dataGridView1.DataSource = source; }
public ListViewModel() { localhost.Service1 s = new localhost.Service1(); //localhost.Book b = new localhost.Book(); List<localhost.Book> tList = s.ReadSome().ToList<localhost.Book>(); foreach (localhost.Book book in tList) { _list.Add(book); } }
public static void UpdateReviews() { localhost.Service1 service = new localhost.Service1(); List<localhost.Review> rl; //service.FindReviewsByBookId(SelectedBook.Id).ToList<localhost.Review>(); if (SelectedBook != null) { if (service.FindReviewsByBookId(SelectedBook.Id) != null) { rl = service.FindReviewsByBookId(SelectedBook.Id).ToList<localhost.Review>(); } else { rl = null; } } else { rl = null; } _reviewList.Clear(); if (rl != null) { foreach (localhost.Review review in rl) { _reviewList.Add(review); } } else { _reviewList.Clear(); } }
public static void Update() { localhost.Service1 service = new localhost.Service1(); List<localhost.Book> l = new List<localhost.Book>(); l = service.ReadSome().ToList<localhost.Book>(); _list.Clear(); foreach (localhost.Book b in l) { _list.Add(b); } }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(PhoneTile)); this.pictureWebCam = new System.Windows.Forms.PictureBox(); this.labelExtensionName = new System.Windows.Forms.Label(); this.labelStatusAndNote = new System.Windows.Forms.Label(); this.pictureInUse = new System.Windows.Forms.PictureBox(); this.labelCustomer = new System.Windows.Forms.Label(); this.labelTime = new System.Windows.Forms.Label(); this.pictureScreen = new System.Windows.Forms.PictureBox(); this.service11 = new OpenDental.localhost.Service1(); ((System.ComponentModel.ISupportInitialize)(this.pictureWebCam)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pictureInUse)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pictureScreen)).BeginInit(); this.SuspendLayout(); // // pictureWebCam // this.pictureWebCam.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.pictureWebCam.Image = ((System.Drawing.Image)(resources.GetObject("pictureWebCam.Image"))); this.pictureWebCam.Location = new System.Drawing.Point(173,7); this.pictureWebCam.Name = "pictureWebCam"; this.pictureWebCam.Size = new System.Drawing.Size(50,37); this.pictureWebCam.TabIndex = 0; this.pictureWebCam.TabStop = false; // // labelExtensionName // this.labelExtensionName.BackColor = System.Drawing.SystemColors.Control; this.labelExtensionName.Font = new System.Drawing.Font("Microsoft Sans Serif",8.25F,System.Drawing.FontStyle.Bold,System.Drawing.GraphicsUnit.Point,((byte)(0))); this.labelExtensionName.Location = new System.Drawing.Point(221,9); this.labelExtensionName.Name = "labelExtensionName"; this.labelExtensionName.Size = new System.Drawing.Size(105,16); this.labelExtensionName.TabIndex = 1; this.labelExtensionName.Text = "104 - Jordan"; this.labelExtensionName.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // labelStatusAndNote // this.labelStatusAndNote.Location = new System.Drawing.Point(249,25); this.labelStatusAndNote.Name = "labelStatusAndNote"; this.labelStatusAndNote.Size = new System.Drawing.Size(77,16); this.labelStatusAndNote.TabIndex = 2; this.labelStatusAndNote.Text = "Available"; this.labelStatusAndNote.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; this.labelStatusAndNote.MouseUp += new System.Windows.Forms.MouseEventHandler(this.labelStatusAndNote_MouseUp); // // pictureInUse // this.pictureInUse.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("pictureInUse.BackgroundImage"))); this.pictureInUse.Location = new System.Drawing.Point(224,25); this.pictureInUse.Name = "pictureInUse"; this.pictureInUse.Size = new System.Drawing.Size(21,17); this.pictureInUse.TabIndex = 3; this.pictureInUse.TabStop = false; // // labelCustomer // this.labelCustomer.Location = new System.Drawing.Point(329,27); this.labelCustomer.Name = "labelCustomer"; this.labelCustomer.Size = new System.Drawing.Size(147,16); this.labelCustomer.TabIndex = 4; this.labelCustomer.Text = "Customer phone #"; this.labelCustomer.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; this.labelCustomer.MouseClick += new System.Windows.Forms.MouseEventHandler(this.labelCustomer_MouseClick); this.labelCustomer.MouseUp += new System.Windows.Forms.MouseEventHandler(this.labelCustomer_MouseUp); // // labelTime // this.labelTime.BackColor = System.Drawing.Color.Lime; this.labelTime.Location = new System.Drawing.Point(329,11); this.labelTime.Name = "labelTime"; this.labelTime.Size = new System.Drawing.Size(56,16); this.labelTime.TabIndex = 5; this.labelTime.Text = "01:10:13"; this.labelTime.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // // pictureScreen // this.pictureScreen.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.pictureScreen.Location = new System.Drawing.Point(0,0); this.pictureScreen.Name = "pictureScreen"; this.pictureScreen.Size = new System.Drawing.Size(173,50); this.pictureScreen.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; this.pictureScreen.TabIndex = 6; this.pictureScreen.TabStop = false; this.pictureScreen.Click += new System.EventHandler(this.pictureScreen_Click); // // service11 // this.service11.Url = "http://localhost:3824/Service1.asmx"; this.service11.UseDefaultCredentials = true; // // PhoneTile // this.AutoScaleDimensions = new System.Drawing.SizeF(6F,13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.Controls.Add(this.pictureScreen); this.Controls.Add(this.pictureInUse); this.Controls.Add(this.pictureWebCam); this.Controls.Add(this.labelTime); this.Controls.Add(this.labelCustomer); this.Controls.Add(this.labelStatusAndNote); this.Controls.Add(this.labelExtensionName); this.DoubleBuffered = true; this.Name = "PhoneTile"; this.Size = new System.Drawing.Size(479,50); ((System.ComponentModel.ISupportInitialize)(this.pictureWebCam)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pictureInUse)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pictureScreen)).EndInit(); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.textMobileSyncServerURL = new System.Windows.Forms.TextBox(); this.labelMobileSynchURL = new System.Windows.Forms.Label(); this.labelMinutesBetweenSynch = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.groupPreferences = new System.Windows.Forms.GroupBox(); this.label8 = new System.Windows.Forms.Label(); this.label7 = new System.Windows.Forms.Label(); this.textMobileUserName = new System.Windows.Forms.TextBox(); this.label4 = new System.Windows.Forms.Label(); this.butCurrentWorkstation = new OpenDental.UI.Button(); this.textMobilePassword = new System.Windows.Forms.TextBox(); this.label6 = new System.Windows.Forms.Label(); this.label5 = new System.Windows.Forms.Label(); this.textMobileSynchWorkStation = new System.Windows.Forms.TextBox(); this.textSynchMinutes = new OpenDental.ValidNumber(); this.butSave = new OpenDental.UI.Button(); this.textDateBefore = new OpenDental.ValidDate(); this.textDateTimeLastRun = new System.Windows.Forms.Label(); this.butFullSync = new OpenDental.UI.Button(); this.butSync = new OpenDental.UI.Button(); this.butClose = new OpenDental.UI.Button(); this.service11 = new OpenDental.localhost.Service1(); this.butDelete = new OpenDental.UI.Button(); this.checkTroubleshooting = new System.Windows.Forms.CheckBox(); this.groupPreferences.SuspendLayout(); this.SuspendLayout(); // // textMobileSyncServerURL // this.textMobileSyncServerURL.Location = new System.Drawing.Point(177,19); this.textMobileSyncServerURL.Name = "textMobileSyncServerURL"; this.textMobileSyncServerURL.Size = new System.Drawing.Size(445,20); this.textMobileSyncServerURL.TabIndex = 75; // // labelMobileSynchURL // this.labelMobileSynchURL.Location = new System.Drawing.Point(6,20); this.labelMobileSynchURL.Name = "labelMobileSynchURL"; this.labelMobileSynchURL.Size = new System.Drawing.Size(169,19); this.labelMobileSynchURL.TabIndex = 76; this.labelMobileSynchURL.Text = "Host Server Address"; this.labelMobileSynchURL.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // labelMinutesBetweenSynch // this.labelMinutesBetweenSynch.Location = new System.Drawing.Point(6,48); this.labelMinutesBetweenSynch.Name = "labelMinutesBetweenSynch"; this.labelMinutesBetweenSynch.Size = new System.Drawing.Size(169,19); this.labelMinutesBetweenSynch.TabIndex = 79; this.labelMinutesBetweenSynch.Text = "Minutes Between Synch"; this.labelMinutesBetweenSynch.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // label3 // this.label3.Location = new System.Drawing.Point(26,239); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(167,18); this.label3.TabIndex = 87; this.label3.Text = "Date/time of last sync"; this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // label2 // this.label2.Location = new System.Drawing.Point(5,76); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(170,18); this.label2.TabIndex = 85; this.label2.Text = "Exclude Appointments Before"; this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // groupPreferences // this.groupPreferences.Controls.Add(this.label8); this.groupPreferences.Controls.Add(this.label7); this.groupPreferences.Controls.Add(this.textMobileUserName); this.groupPreferences.Controls.Add(this.label4); this.groupPreferences.Controls.Add(this.butCurrentWorkstation); this.groupPreferences.Controls.Add(this.textMobilePassword); this.groupPreferences.Controls.Add(this.label6); this.groupPreferences.Controls.Add(this.label5); this.groupPreferences.Controls.Add(this.textMobileSynchWorkStation); this.groupPreferences.Controls.Add(this.textSynchMinutes); this.groupPreferences.Controls.Add(this.label2); this.groupPreferences.Controls.Add(this.butSave); this.groupPreferences.Controls.Add(this.textDateBefore); this.groupPreferences.Controls.Add(this.labelMobileSynchURL); this.groupPreferences.Controls.Add(this.textMobileSyncServerURL); this.groupPreferences.Controls.Add(this.labelMinutesBetweenSynch); this.groupPreferences.Location = new System.Drawing.Point(18,12); this.groupPreferences.Name = "groupPreferences"; this.groupPreferences.Size = new System.Drawing.Size(665,212); this.groupPreferences.TabIndex = 239; this.groupPreferences.TabStop = false; this.groupPreferences.Text = "Preferences"; // // label8 // this.label8.Location = new System.Drawing.Point(8,183); this.label8.Name = "label8"; this.label8.Size = new System.Drawing.Size(575,19); this.label8.TabIndex = 246; this.label8.Text = "To change your password, enter a new one in the box and Save. To keep the old pa" + "ssword, leave the box empty."; this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // label7 // this.label7.Location = new System.Drawing.Point(222,48); this.label7.Name = "label7"; this.label7.Size = new System.Drawing.Size(343,18); this.label7.TabIndex = 244; this.label7.Text = "Set to 0 to stop automatic Synchronization"; this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // textMobileUserName // this.textMobileUserName.Location = new System.Drawing.Point(177,131); this.textMobileUserName.Name = "textMobileUserName"; this.textMobileUserName.Size = new System.Drawing.Size(247,20); this.textMobileUserName.TabIndex = 242; // // label4 // this.label4.Location = new System.Drawing.Point(5,132); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(169,19); this.label4.TabIndex = 243; this.label4.Text = "User Name"; this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // butCurrentWorkstation // this.butCurrentWorkstation.AdjustImageLocation = new System.Drawing.Point(0,0); this.butCurrentWorkstation.Autosize = true; this.butCurrentWorkstation.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle; this.butCurrentWorkstation.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver; this.butCurrentWorkstation.CornerRadius = 4F; this.butCurrentWorkstation.Location = new System.Drawing.Point(430,101); this.butCurrentWorkstation.Name = "butCurrentWorkstation"; this.butCurrentWorkstation.Size = new System.Drawing.Size(115,24); this.butCurrentWorkstation.TabIndex = 247; this.butCurrentWorkstation.Text = "Current Workstation"; this.butCurrentWorkstation.Click += new System.EventHandler(this.butCurrentWorkstation_Click); // // textMobilePassword // this.textMobilePassword.Location = new System.Drawing.Point(177,159); this.textMobilePassword.Name = "textMobilePassword"; this.textMobilePassword.PasswordChar = '*'; this.textMobilePassword.Size = new System.Drawing.Size(247,20); this.textMobilePassword.TabIndex = 243; // // label6 // this.label6.Location = new System.Drawing.Point(4,105); this.label6.Name = "label6"; this.label6.Size = new System.Drawing.Size(170,18); this.label6.TabIndex = 246; this.label6.Text = "Workstation for Synching"; this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // label5 // this.label5.Location = new System.Drawing.Point(5,160); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size(169,19); this.label5.TabIndex = 244; this.label5.Text = "Password"; this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // textMobileSynchWorkStation // this.textMobileSynchWorkStation.Location = new System.Drawing.Point(177,103); this.textMobileSynchWorkStation.Name = "textMobileSynchWorkStation"; this.textMobileSynchWorkStation.Size = new System.Drawing.Size(247,20); this.textMobileSynchWorkStation.TabIndex = 245; // // textSynchMinutes // this.textSynchMinutes.Location = new System.Drawing.Point(177,47); this.textSynchMinutes.MaxVal = 255; this.textSynchMinutes.MinVal = 0; this.textSynchMinutes.Name = "textSynchMinutes"; this.textSynchMinutes.Size = new System.Drawing.Size(39,20); this.textSynchMinutes.TabIndex = 241; // // butSave // this.butSave.AdjustImageLocation = new System.Drawing.Point(0,0); this.butSave.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.butSave.Autosize = true; this.butSave.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle; this.butSave.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver; this.butSave.CornerRadius = 4F; this.butSave.Location = new System.Drawing.Point(598,182); this.butSave.Name = "butSave"; this.butSave.Size = new System.Drawing.Size(61,24); this.butSave.TabIndex = 240; this.butSave.Text = "Save"; this.butSave.Click += new System.EventHandler(this.butSave_Click); // // textDateBefore // this.textDateBefore.Location = new System.Drawing.Point(177,75); this.textDateBefore.Name = "textDateBefore"; this.textDateBefore.Size = new System.Drawing.Size(100,20); this.textDateBefore.TabIndex = 84; // // textDateTimeLastRun // this.textDateTimeLastRun.Location = new System.Drawing.Point(196,239); this.textDateTimeLastRun.Name = "textDateTimeLastRun"; this.textDateTimeLastRun.Size = new System.Drawing.Size(207,18); this.textDateTimeLastRun.TabIndex = 243; this.textDateTimeLastRun.Text = "3/4/2011 4:15 PM"; this.textDateTimeLastRun.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // butFullSync // this.butFullSync.AdjustImageLocation = new System.Drawing.Point(0,0); this.butFullSync.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.butFullSync.Autosize = true; this.butFullSync.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle; this.butFullSync.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver; this.butFullSync.CornerRadius = 4F; this.butFullSync.Location = new System.Drawing.Point(269,288); this.butFullSync.Name = "butFullSync"; this.butFullSync.Size = new System.Drawing.Size(68,24); this.butFullSync.TabIndex = 83; this.butFullSync.Text = "Full Synch"; this.butFullSync.Click += new System.EventHandler(this.butFullSync_Click); // // butSync // this.butSync.AdjustImageLocation = new System.Drawing.Point(0,0); this.butSync.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.butSync.Autosize = true; this.butSync.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle; this.butSync.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver; this.butSync.CornerRadius = 4F; this.butSync.Location = new System.Drawing.Point(343,288); this.butSync.Name = "butSync"; this.butSync.Size = new System.Drawing.Size(68,24); this.butSync.TabIndex = 82; this.butSync.Text = "Synch"; this.butSync.Click += new System.EventHandler(this.butSync_Click); // // butClose // this.butClose.AdjustImageLocation = new System.Drawing.Point(0,0); this.butClose.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.butClose.Autosize = true; this.butClose.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle; this.butClose.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver; this.butClose.CornerRadius = 4F; this.butClose.Location = new System.Drawing.Point(611,288); this.butClose.Name = "butClose"; this.butClose.Size = new System.Drawing.Size(75,24); this.butClose.TabIndex = 81; this.butClose.Text = "Close"; this.butClose.Click += new System.EventHandler(this.butClose_Click); // // service11 // this.service11.Url = "http://localhost:3824/Service1.asmx"; this.service11.UseDefaultCredentials = true; // // butDelete // this.butDelete.AdjustImageLocation = new System.Drawing.Point(0,0); this.butDelete.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.butDelete.Autosize = true; this.butDelete.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle; this.butDelete.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver; this.butDelete.CornerRadius = 4F; this.butDelete.Location = new System.Drawing.Point(195,288); this.butDelete.Name = "butDelete"; this.butDelete.Size = new System.Drawing.Size(68,24); this.butDelete.TabIndex = 245; this.butDelete.Text = "Delete All"; this.butDelete.Click += new System.EventHandler(this.butDelete_Click); // // checkTroubleshooting // this.checkTroubleshooting.Location = new System.Drawing.Point(327,239); this.checkTroubleshooting.Name = "checkTroubleshooting"; this.checkTroubleshooting.RightToLeft = System.Windows.Forms.RightToLeft.Yes; this.checkTroubleshooting.Size = new System.Drawing.Size(184,24); this.checkTroubleshooting.TabIndex = 246; this.checkTroubleshooting.Text = "Synch Troubleshooting Mode"; this.checkTroubleshooting.UseVisualStyleBackColor = true; // // FormMobile // this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; this.ClientSize = new System.Drawing.Size(714,325); this.Controls.Add(this.checkTroubleshooting); this.Controls.Add(this.butDelete); this.Controls.Add(this.textDateTimeLastRun); this.Controls.Add(this.groupPreferences); this.Controls.Add(this.label3); this.Controls.Add(this.butFullSync); this.Controls.Add(this.butSync); this.Controls.Add(this.butClose); this.Name = "FormMobile"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "Mobile and Patient Portal Synch"; this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.FormMobile_FormClosed); this.Load += new System.EventHandler(this.FormMobileSetup_Load); this.groupPreferences.ResumeLayout(false); this.groupPreferences.PerformLayout(); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.label1 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.textDescription = new System.Windows.Forms.TextBox(); this.textCode = new System.Windows.Forms.TextBox(); this.buttonDelete = new OpenDental.UI.Button(); this.butOK = new OpenDental.UI.Button(); this.butCancel = new OpenDental.UI.Button(); this.service11 = new OpenDental.localhost.Service1(); this.SuspendLayout(); // // label1 // this.label1.Location = new System.Drawing.Point(12,23); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(91,16); this.label1.TabIndex = 4; this.label1.Text = "Code"; this.label1.TextAlign = System.Drawing.ContentAlignment.TopRight; // // label2 // this.label2.Location = new System.Drawing.Point(9,49); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(94,16); this.label2.TabIndex = 4; this.label2.Text = "Description"; this.label2.TextAlign = System.Drawing.ContentAlignment.TopRight; // // textDescription // this.textDescription.Location = new System.Drawing.Point(109,45); this.textDescription.Name = "textDescription"; this.textDescription.Size = new System.Drawing.Size(317,20); this.textDescription.TabIndex = 1; // // textCode // this.textCode.Location = new System.Drawing.Point(109,19); this.textCode.Name = "textCode"; this.textCode.Size = new System.Drawing.Size(100,20); this.textCode.TabIndex = 0; // // buttonDelete // this.buttonDelete.AdjustImageLocation = new System.Drawing.Point(0,0); this.buttonDelete.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.buttonDelete.Autosize = true; this.buttonDelete.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle; this.buttonDelete.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver; this.buttonDelete.CornerRadius = 4F; this.buttonDelete.Image = global::OpenDental.Properties.Resources.deleteX; this.buttonDelete.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; this.buttonDelete.Location = new System.Drawing.Point(22,97); this.buttonDelete.Name = "buttonDelete"; this.buttonDelete.Size = new System.Drawing.Size(82,25); this.buttonDelete.TabIndex = 6; this.buttonDelete.Text = "&Delete"; this.buttonDelete.Click += new System.EventHandler(this.buttonDelete_Click); // // butOK // this.butOK.AdjustImageLocation = new System.Drawing.Point(0,0); this.butOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.butOK.Autosize = true; this.butOK.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle; this.butOK.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver; this.butOK.CornerRadius = 4F; this.butOK.Location = new System.Drawing.Point(271,97); this.butOK.Name = "butOK"; this.butOK.Size = new System.Drawing.Size(75,24); this.butOK.TabIndex = 3; this.butOK.Text = "&OK"; this.butOK.Click += new System.EventHandler(this.butOK_Click); // // butCancel // this.butCancel.AdjustImageLocation = new System.Drawing.Point(0,0); this.butCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.butCancel.Autosize = true; this.butCancel.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle; this.butCancel.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver; this.butCancel.CornerRadius = 4F; this.butCancel.Location = new System.Drawing.Point(352,98); this.butCancel.Name = "butCancel"; this.butCancel.Size = new System.Drawing.Size(75,24); this.butCancel.TabIndex = 2; this.butCancel.Text = "&Cancel"; this.butCancel.Click += new System.EventHandler(this.butCancel_Click); // // service11 // this.service11.Url = "http://localhost:3824/Service1.asmx"; this.service11.UseDefaultCredentials = true; // // FormIcd9Edit // this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; this.ClientSize = new System.Drawing.Size(452,144); this.Controls.Add(this.textCode); this.Controls.Add(this.buttonDelete); this.Controls.Add(this.textDescription); this.Controls.Add(this.label2); this.Controls.Add(this.label1); this.Controls.Add(this.butOK); this.Controls.Add(this.butCancel); this.Name = "FormIcd9Edit"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "ICD9 Edit"; this.Load += new System.EventHandler(this.FormIcd9Edit_Load); this.ResumeLayout(false); this.PerformLayout(); }
public ReviewListView(int bookId) { localhost.Service1 s = new localhost.Service1(); if (s.FindReviewsByBookId(bookId)!=null) { List<localhost.Review> tList = s.FindReviewsByBookId(bookId).ToList<localhost.Review>(); foreach (localhost.Review review in tList) { _list.Add(review); } } else { localhost.Review r = new localhost.Review(); r.AuthorId = 666; r.Text = "There aren't any reviews at the moment. Be the first one to write one!"; _list.Add(r); } }
/// <summary> /// Initialize the class, build the list of the most recent books /// </summary> /// <param name="n">Number of books</param> public RecentBooks(int n) { localhost.Service1 s = new localhost.Service1(); this._list = s.RecentBooks(n).ToList<localhost.Book>(); }