public ResultUC(ClientForm clientForm) { // TODO: Complete member initialization InitializeComponent(); this.clientForm = clientForm; clientForm.gameUC.pnResult.Visible = true; }
private void pcb_btnClient_Click(object sender, EventArgs e) { if (Application.OpenForms.OfType <ClientForm>().Count() == 0) { ClientForm client = new ClientForm(); client.Show(); this.Close(); } }
public void InitializeGroupForm() { ClientForm personForm = new ClientForm(OClientTypes.Group, this, false) { MdiParent = this }; personForm.Show(); }
public void InitializeCorporateForm() { ClientForm corporateForm = new ClientForm(OClientTypes.Corporate, this, false) { MdiParent = this }; corporateForm.Show(); }
//Retorna ao formulário de clientes private void goToClientForm() { if (Application.OpenForms.OfType <ClientForm>().Count() == 0) { this.editClick = false; ClientForm clientForm = new ClientForm(); clientForm.Show(); this.Close(); } }
// --- --- --- --- --- KLIENT --- --- --- --- --- // #region Klient // --- FORMULARZE public void ShowClientAddForm() { ClientForm form = new ClientForm(); ClientFormController formController = new ClientFormController(form, Operation.Add); formController.Queries = queriesClient; dr = form.ShowDialog(); // odswiezenie danych ReloadIfFormReturnedOK(); }
private void clientStartButton_Click(object sender, EventArgs e) { this.ip = ipTextBox.Text; this.port = portTextBox.Text; this.clientNumber += 1; ClientForm NewClinetForm = new ClientForm(); NewClinetForm.Owner = this; NewClinetForm.Show(); }
private void btnClients_Click(object sender, EventArgs e) { this.deleteSubs(); ClientForm clientForm = new ClientForm(); clientForm.MdiParent = (Form1)this.MdiParent; clientForm.Anchor = AnchorStyles.Top | AnchorStyles.Right; clientForm.Dock = DockStyle.Fill; clientForm.Show(); }
private void OpenClientForm(OClientTypes clientType) { var parent = Application.OpenForms[0]; var form = new ClientForm(clientType, parent, false) { MdiParent = parent }; form.Show(); }
private void ViewMember(object sender, EventArgs e) { var contact = (Contact)lvContacts.SelectedItems[0].Tag; var member = ServicesProvider.GetInstance().GetClientServices().FindPersonById(contact.Tiers.Id); if (member != null) { var clientForm = new ClientForm(member, _mdifrom, _applicationController); clientForm.ShowDialog(); } }
public IMGInformerControl(ClientForm clform) { this._clform = clform; this._id = 0; this._url = String.Empty; this._tag = String.Empty; this._part = String.Empty; InitializeComponent(); this.Hide(); }
public ActionResult Edit(Guid id, ClientForm clientForm) { if (!ModelState.IsValid) { return View(clientForm); } _clientService.Edit(clientForm.ToClient()); return RedirectToAction("Index", new ClientListFiltersModel().GetRouteValues()).WithSuccess("Camion Editado"); }
public ActionResult Edit(Guid id, ClientForm clientForm) { if (!ModelState.IsValid) { return(View(clientForm)); } _clientService.Edit(clientForm.ToClient()); return(RedirectToAction("Index", new ClientListFiltersModel().GetRouteValues()).WithSuccess("Camion Editado")); }
public ConfigurationWindow(ClientForm clientForm) { myClientForm = clientForm; InitializeComponent(); tbSipProxyAddress.Text = myClientForm.myClientConfiguration.SIPProxyAddress; tbSipRealm.Text = myClientForm.myClientConfiguration.SIPProxyRealm; tbIMServerAddress.Text = myClientForm.myClientConfiguration.IMServerAddress; tbVideoProxyAddress.Text = myClientForm.myClientConfiguration.VideoProxyAddress; tbWebServiceUrl.Text = myClientForm.myClientConfiguration.RSIUrl; }
public override void Update(ClientForm cf, Entity e) { Player p = (Player)e; if (_dead) { return; } if (p.Dead) { _cf.Invoke(new RemoveFormControlDelegate(_cf.RemoveGamePanelControl), _p, _pb); _dead = true; return; } _cf.Invoke(new UpdateFormControlPositionDelegate(_cf.UpdateControlPosition), _pb, new Point(p.x - p.hitboxRadius, p.y - p.hitboxRadius)); Image img; switch (p.LastDir) { case Direction.Up: img = Properties.Resources.Up; break; case Direction.Down: img = Properties.Resources.down; break; case Direction.Left: img = Properties.Resources.Left; break; case Direction.Right: img = Properties.Resources.Right; break; default: throw new NotImplementedException("Unsupported Player diretion"); } if (p.LastDir != _playerDir) { _cf.Invoke(new UpdatePictureBoxImageDelegate(_cf.UpdatePictureBoxImage), _pb, img); _playerDir = p.LastDir; } if (_clientPlayer) { UpdateScore(p); } }
public void InitializeSavingContractForm(IClient client, int savingId) { switch (client.Type) { case OClientTypes.Person: { var personForm = new ClientForm((Person)client, this) { MdiParent = this, Text = string.Format("{0} [{1}]", MultiLanguageStrings.GetString( Ressource.ClientForm, "Person.Text"), ((Person)client).Name) }; personForm.DisplaySaving(savingId, client); personForm.Show(); break; } case OClientTypes.Group: { var personForm = new ClientForm((Group)client, this) { MdiParent = this, Text = string.Format("{0} [{1}]", MultiLanguageStrings.GetString(Ressource.ClientForm, "Group.Text"), ((Group)client).Name) }; personForm.DisplaySaving(savingId, client); personForm.Show(); break; } case OClientTypes.Village: { var frm = new NonSolidaryGroupForm((Village)client) { MdiParent = this }; frm.Show(); break; } case OClientTypes.Corporate: { var corporateForm = new ClientForm((Corporate)client, this) { MdiParent = this }; corporateForm.DisplaySaving(savingId, client); corporateForm.Show(); break; } } }
public void Disconnect(bool remove = true) { IsAvailable = false; if (remove && ClientForm != null) { MainForm.Instance?.InvokeAction(() => { MessageBox.Show($@"{ClientForm.Text} server closed."); ClientForm?.Close(); ClientForm?.Dispose(); }); } }
private void mnuClient_Click(object sender, EventArgs e) { if (clientform == null || clientform.IsDisposed) { clientform = new ClientForm(); clientform.Show(); clientform.MdiParent = this; } else { clientform.Activate(); } }
public ActionResult Create(ClientForm clientForm) { if (!ModelState.IsValid) { return(View(clientForm)); } var client = clientForm.ToClient(); _clientService.Create(client); return(RedirectToAction("Index", new ClientListFiltersModel().GetRouteValues()).WithSuccess("Camion Creado")); }
public ActionResult Create(ClientForm clientForm) { if (!ModelState.IsValid) { return View(clientForm); } var client = clientForm.ToClient(); _clientService.Create(client); return RedirectToAction("Index", new ClientListFiltersModel().GetRouteValues()).WithSuccess("Camion Creado"); }
public void InitializeCorporateForm(Corporate corporate, Project project) { ClientForm corporateForm = new ClientForm(corporate, this) { MdiParent = this }; if (project != null) { corporateForm.DisplayUserControl_ViewProject(project, null); } corporateForm.Show(); }
public void InitializeGroupForm(Group group, Project project) { ClientForm personForm = new ClientForm(group, this) { MdiParent = this, Text = string.Format("{0} [{1}]", MultiLanguageStrings.GetString(Ressource.ClientForm, "Group.Text"), group.Name) }; if (project != null) { personForm.DisplayUserControl_ViewProject(project, null); } personForm.Show(); }
public override void Update(ClientForm cf, Entity e) { Coin c = (Coin)e; if (c.Consumed && !_consumed) { cf.Invoke(new RemoveFormControlDelegate(cf.RemoveGamePanelControl), _p, _pb); _consumed = true; } else if (!c.Consumed && _consumed) { ReInit(e); } }
public SampleClientForm( ApplicationInstance application, ClientForm masterForm, ApplicationConfiguration configuration) : base(configuration.CreateMessageContext(), application, masterForm, configuration) { InitializeComponent(); if (!configuration.SecurityConfiguration.AutoAcceptUntrustedCertificates) { configuration.CertificateValidator.CertificateValidation += new CertificateValidationEventHandler(CertificateValidator_CertificateValidation); } }
private void DisplaySelectedSaving() { if (listViewSavings.SelectedItems.Count > 0) { IClient member = (IClient)listViewSavings.SelectedItems[0].Group.Tag; if (member != null) { ClientForm personForm = new ClientForm((Person)member, MdiParent); personForm.DisplaySaving(((ISavingsContract)listViewSavings.SelectedItems[0].Tag).Id, member); personForm.ShowDialog(); DisplaySavings(); } } }
public static ClientForm Instance(string mode) { if (sForm == null) { sForm = new ClientForm(mode); } else { sForm.Close(); sForm = new ClientForm(mode); } return(sForm); }
/// <summary> /// Открытие формы для добавления объекта типа Client /// </summary> private void butAddClient_Click() { var main = Application.OpenForms.OfType <XtraForm>().First(f => f.Name.Equals("MainForm")); var client = new ClientForm(); client.Owner = main; client.StartPosition = FormStartPosition.CenterParent; cities._cities.ForEach(c => client.cmbCities.Items.Add(c)); client.cmbCities.SelectedItem = cities._cities.First(); var clientPresenter = new AddClientFormPresenter(client); client.ShowDialog(); }
private void BtnAddContactClick(object sender, EventArgs e) { var personForm = new ClientForm(OClientTypes.Person, _mdifrom, true, _applicationController); personForm.ShowDialog(); Contact contact = new Contact { Tiers = personForm.Person }; if (contact.Tiers != null) { Corporate.Contacts.Add(contact); } DisplayListContactCorporate(Corporate.Contacts); }
private void listViewGroup_DoubleClick(object sender, EventArgs e) { IClient client = (IClient)listViewGroup.SelectedItems[0].Tag; client = ServicesProvider.GetInstance().GetClientServices().FindTiers(client.Id, client.Type); if (client is Group) { ClientForm form = new ClientForm((Group)client, _mdiParent); form.ShowDialog(); } else if (client is Village) { NonSolidaryGroupForm form = new NonSolidaryGroupForm((Village)client); form.ShowDialog(); } }
public FormTools(ClientForm form, BLL.PWClient client) { this.Form = form; this.Client = client; this.Client.Mem.Link.OnConnect += (sender, e) => CalculateStatus(); this.Client.Mem.Link.OnPlayerConnect += (sender, e) => CalculateStatus(); this.Client.Mem.Link.OnCurrentHPChange += (sender, e) => CalculateStatus(); this.Client.Auto.OnAutoKeyStatusChange += (sender, e) => { CalculateStatus(); }; this.Client.Auto.OnAutoSpotStatusChange += (sender, e) => { CalculateStatus(); }; this.Client.Auto.OnAutoFollowStatusChange += (sender, e) => { CalculateStatus(); }; this.Client.Auto.OnAutoAssistStatusChange += (sender, e) => { CalculateStatus(); }; this.Client.Auto.OnVillaStatusChange += (sender, e) => { CalculateStatus(); }; //no anda por thread q no creó el objeto StartDrawStatus(); }
public void ShowClientDeleteForm() { try { Klient client = clients.GetActiveElement(); ClientForm form = new ClientForm(client); ClientFormController formController = new ClientFormController(form, Operation.Delete); formController.Queries = queriesClient; dr = form.ShowDialog(); // odswiezenie danych ReloadIfFormReturnedOK(); } catch (NullReferenceException ex) { } }
public void InitializePersonForm(Person person, Project project) { ClientForm personForm = new ClientForm(person, this, _applicationController) { MdiParent = this, Text = string.Format( "{0} [{1}]", MultiLanguageStrings.GetString(Ressource.ClientForm, "Person.Text"), person.Name) }; if (project != null) { personForm.DisplayUserControl_ViewProject(project, null); } personForm.Show(); }
private void AddAGuarantor() { var personForm = new ClientForm(OClientTypes.Person, _mdiParent, true, _applicationController); personForm.ShowDialog(); _guarantor.Tiers = personForm.Person; try { textBoxName.Text = ServicesProvider.GetInstance().GetClientServices().ClientIsAPerson(_guarantor.Tiers) ? _guarantor.Tiers.Name : String.Empty; } catch (Exception ex) { new frmShowError(CustomExceptionHandler.ShowExceptionText(ex)).ShowDialog(); } }
public ContactsWindow(ClientForm clientForm, NTContact selectedMyContact, Hashtable properties) { myClientForm = clientForm; mContactBook = myClientForm.mContactBook; mContactBook.UpdateCompleted += new EventHandler(mContactBook_UpdateCompleted); mProperties = properties; InitializeComponent(); LocalizeComponent(); BrandComponent(); this.ClientSize = this.Size; this.MaximizeBox = false; this.MaximumSize = this.Size; LoadContact(selectedMyContact); }
public void Execute(ClientForm form) { form.SetFriendsOnline(Friends); }
double tik2 = 3; //틀린곳시 클릭막기용시간초 #endregion Fields #region Constructors // ClientForm과 이 유저컨트롤을 연결 public GameUC(ClientForm cf) { InitializeComponent(); clientForm = cf; }
public void Execute(ClientForm form) { form.SetFriendOffline(Friend); }
public ActionResult Create() { var clientForm = new ClientForm(); return View(clientForm); }
public StatementUC(ClientForm cf) { InitializeComponent(); clientForm = cf; }
public LoginUC(ClientForm cf) { InitializeComponent(); clientForm = cf; }