Esempio n. 1
0
        /// <summary>
        /// The DgvClients_CellContentClick method
        /// Delete and Modify a customer by id.
        /// </summary>
        private void DgvClients_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            string id = dgvClients.Rows[e.RowIndex].Cells["Código"].FormattedValue.ToString();

            if (dgvClients.Columns[e.ColumnIndex].Name == "Edit")
            {
                dgvClients.CurrentRow.Selected = true;

                AddClient route = new AddClient(id);
                route.ShowDialog();

                loadCustomerView();
            }

            if (dgvClients.Columns[e.ColumnIndex].Name == "Delete")
            {
                dgvClients.CurrentRow.Selected = true;

                DialogResult dialogResult = MessageBox.Show("Está a punto de eliminar a " + dgvClients.Rows[e.RowIndex].Cells["Nombre"].FormattedValue.ToString() + ".\n" +
                                                            "¿Está seguro de que quiere continuar?", "¿Eliminar Cliente?", MessageBoxButtons.YesNo, MessageBoxIcon.Question);

                if (dialogResult == DialogResult.Yes)
                {
                    if (clientBLL.deleteClientBLL(id))
                    {
                        loadCustomerView();
                        MessageBox.Show("Eliminado con éxito", "Éxito", MessageBoxButtons.OK, MessageBoxIcon.Information);
                    }
                    else
                    {
                        MessageBox.Show("Ha ocurrido un problema, no se ha podido eliminar el cliente\nNo se puede eliminar un cliente asignado a una orden", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                    }
                }
            }
        }
        public IActionResult Create(AddClient model)
        {
            if (!LogedIn())
            {
                return(RedirectToRoute("/home"));
            }

            if (ModelState.IsValid)
            {
                if (_context.Clients.Any(C => C.Username == model.Username))
                {
                    ViewData["message"] = "Email Already Taken";
                    return(View());
                }
                Client c = new Client()
                {
                    Name        = model.Name,
                    Username    = model.Username,
                    Password    = model.Password,
                    Phonenumber = model.Phone,
                    Company     = _context.Companies.Find(CompanyId)
                };
                _context.Clients.Add(c);
                _context.SaveChanges();

                return(RedirectToAction("Index"));
            }
            return(View());
        }
Esempio n. 3
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="message"></param>
        public void Handle(AddClient message)
        {
            m_clientById.Add(message.Client.ClientId, message.Client);
            m_log.Info("add client : {0}", message.Client.ClientId);

            message.Client.Send(new WelcomeConnectMessage());
        }
Esempio n. 4
0
        private void EditClient(object sender, EventArgs e)
        {
            Podatnik edited = new Podatnik();
            int      podID  = Convert.ToInt32(ShowClients.selectedRow.Cells["Id"].Value.ToString());

            using (InzynierkaDBEntities db = new InzynierkaDBEntities())
            {
                edited =
                    db.Podatnik.Where(x => x.podatnik_id == podID).First();
            }

            AddClient f = new AddClient(edited);

            if (f.ShowDialog() == DialogResult.OK)
            {
                int    id          = edited.podatnik_id;
                string updateQuery =
                    "UPDATE Podatnik SET " +
                    "urzad_id = " + f.nowyPodatnik.urzad_id + ", " +
                    "nazwa = '" + f.nowyPodatnik.nazwa + "', " +
                    "symbol = '" + f.nowyPodatnik.symbol + "', " +
                    "nip = '" + f.nowyPodatnik.nip + "', " +
                    "wojewodztwo = '" + f.nowyPodatnik.wojewodztwo + "', " +
                    "miasto = '" + f.nowyPodatnik.miasto + "', " +
                    "ulica = '" + f.nowyPodatnik.ulica + "', " +
                    "kod_pocztowy = '" + f.nowyPodatnik.kod_pocztowy + "', " +
                    "telefon = '" + f.nowyPodatnik.telefon + "', " +
                    "email = '" + f.nowyPodatnik.email + "' " +
                    "WHERE podatnik_id = " + id + ";";
                SQL.DoQuery(updateQuery);
            }
        }
Esempio n. 5
0
        public ActionResult Add(AddService.User user)
        {
            AddClient addClient = new AddClient();

            user.SubmitTime = DateTime.Now;
            addClient.DoWork(user);
            return(RedirectToAction("Get"));
        }
Esempio n. 6
0
 private void barButtonItem2_ItemClick(object sender, ItemClickEventArgs e)
 {
     using (var form = new AddClient())
     {
         form.ShowDialog();
         RefreshData();
     }
 }
Esempio n. 7
0
        /// <summary>
        /// The Button1_Click method
        /// Open a window to add a client.
        /// </summary>
        private void Button1_Click(object sender, EventArgs e)
        {
            AddClient route = new AddClient();

            route.ShowDialog();
            cbClient.Items.Clear();
            clientBLL.fillClientComboBox(cbClient);
        }
 public void FilloutContactInformation(AddClient user)
 {
     FirstName.SendKeys(user.FirstName);
     LastName.SendKeys(user.LastName);
     PhoneNumber.SendKeys(user.PhoneNumber);
     Email.SendKeys(user.Email);
     CompanyName.SendKeys(user.Company);
 }
Esempio n. 9
0
        private void msi_addUser_Click(object sender, EventArgs e)
        {
            AddClient client = new AddClient();

            if (client.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                client.Close();
            }
            GrabClients();
        }
Esempio n. 10
0
        private static void Main(string[] args)
        {
            var client = new AddClient();

            Console.WriteLine("Add Api Call" + client.AddAsync(2, 3).GetAwaiter().GetResult());
            var client2 = new SubtractClient();

            Console.WriteLine("Subtract Api Call" + client2.SubtractAsync(2, 3).GetAwaiter().GetResult());
            Console.WriteLine("Add Api Call" + client.AddAsync(2, 3).GetAwaiter().GetResult());
            Console.WriteLine("Subtract Api Call" + client2.SubtractAsync(2, 3).GetAwaiter().GetResult());
        }
        private void btnAdd_Click(object sender, EventArgs e)
        {
            removeAllManagamentControls();

            switch (this.Mantenimiento)
            {
            case "Users":
                AddUser addUser = new AddUser();
                Parent.Controls.Add(addUser);
                break;

            case "Clients":
                AddClient addClient = new AddClient();
                Parent.Controls.Add(addClient);
                break;

            case "States":
                AddState addState = new AddState();
                Parent.Controls.Add(addState);
                break;

            case "PaymentMethods":
                AddPaymentMethod deletePayment = new AddPaymentMethod();
                Parent.Controls.Add(deletePayment);
                break;

            case "MaterialTypes":
                AddMaterialType addMaterialType = new AddMaterialType();
                Parent.Controls.Add(addMaterialType);
                break;

            case "Materials":
                AddMaterial addMaterial = new AddMaterial();
                Parent.Controls.Add(addMaterial);
                break;

            case "ProductTypes":
                AddProductType addProductType = new AddProductType();
                Parent.Controls.Add(addProductType);
                break;

            case "Products":
                AddProduct addProduct = new AddProduct();
                Parent.Controls.Add(addProduct);
                break;

            case "Providers":
                AddProvider addP = new AddProvider();
                Parent.Controls.Add(addP);
                break;
            }
        }
Esempio n. 12
0
        private void AddClient(object sender, EventArgs e)
        {
            AddClient f = new AddClient();

            if (f.ShowDialog() == DialogResult.OK)
            {
                using (InzynierkaDBEntities db = new InzynierkaDBEntities())
                {
                    db.Podatnik.Add(f.nowyPodatnik);
                    db.SaveChanges();
                }
            }
        }
Esempio n. 13
0
        private void barButtonItem3_ItemClick(object sender, ItemClickEventArgs e)
        {
            if (!(clientBindingSource.Current is Client currentClient) || tabPane1.SelectedPageIndex != 0)
            {
                XtraMessageBox.Show("Сначала выберете клиента", "Предупреждение", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Information);
                return;
            }

            using (var form = new AddClient(currentClient))
            {
                form.ShowDialog();
                RefreshData();
            }
        }
Esempio n. 14
0
        private void bunifuButton2_Click(object sender, EventArgs e)
        {
            AddClient m = new AddClient();

            m.ShowDialog();
            try
            {
                m.btnAdd.Text = "Add New";
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
            RefreshClientDGV();
        }
        public void EditClientPage()
        {
            using (var driver = DriverUtils.CreateWebDriver())
            {
                driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(10);
                driver.Navigate().GoToUrl(Config.GetUrl());


                var logInPage = new LogInPage(driver);

                logInPage.LogIn(LogInLogOut.Username(), LogInLogOut.Password());

                logInPage.ClickAddClient();

                var addClientPage = new AddClientPage(driver);

                addClientPage.SelectTeacherID(AddClient.TeacherID());

                var client = new AddClient();

                addClientPage.FilloutContactInformation(client);
                addClientPage.ClickSave();

                var deleteClient = new ClientPage(driver);

                var IdNumber = deleteClient.GetClientID();
                deleteClient.ClickClientID();

                Thread.Sleep(1000);
                driver.Title.ShouldBe(EditClient.EditClientPage() + " " + IdNumber);

                var editClientPage = new EditClientPage(driver);

                editClientPage.ChangeFirstName(EditClient.FirstName());
                editClientPage.ChangeLastName(EditClient.LastName());
                editClientPage.ChangeEMail(EditClient.Email());
                editClientPage.ClickSave();

                var tableText = editClientPage.GetTableText();

                Console.WriteLine(tableText);
                tableText.ShouldContain(EditClient.FirstName());
                tableText.ShouldContain(EditClient.LastName());
                tableText.ShouldContain(EditClient.Email());
            }
        }
Esempio n. 16
0
        public void ClientPage()
        {
            using (var driver = DriverUtils.CreateWebDriver())
            {
                driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(10);
                driver.Navigate().GoToUrl(Config.GetUrl());


                var logInPage = new LogInPage(driver);

                logInPage.LogIn(LogInLogOut.Username(), LogInLogOut.Password());

                logInPage.ClickAddClient();

                var addClientPage = new AddClientPage(driver);

                addClientPage.SelectTeacherID(AddClient.TeacherID());

                var client = new AddClient();

                addClientPage.FilloutContactInformation(client);
                addClientPage.ClickSave();
                Thread.Sleep(1000);

                var deleteClient = new ClientPage(driver);

                var IdNumber = deleteClient.GetClientID();

                deleteClient.DeleteButton();
                Thread.Sleep(1000);
                deleteClient.ConfirmButtonClick();
                Thread.Sleep(1000);


                var clientSearchPage = new SearchClientPage(driver);

                clientSearchPage.SearchBy(IdNumber);
                clientSearchPage.ClickSearch();
                Thread.Sleep(1000);

                deleteClient.DeleteConfirm().ShouldBe(DeleteClient.NoRecord());
            }
        }
Esempio n. 17
0
        private void AddClientBtn_Click(object sender, RoutedEventArgs e)
        {
            InitDataSource(ref clientItems, Mapper.ClientsToClientViewModels, clientController.Get);

            AddClient addClient = new AddClient(libraryItems);

            if (addClient.ShowDialog().Value)
            {
                string           name    = addClient.Name.Text;
                string           surname = addClient.Surname.Text;
                LibraryViewModel model   = addClient.SelectedItem;

                if (model != null)
                {
                    Library library = libraryController.GetById(model.Id);
                    Client  client  = new Client(name, surname, library);
                    clientController.Add(client);
                    clientItems.Add(Mapper.ClientToClientViewModel(client));
                    return;
                }
            }
        }
Esempio n. 18
0
        private void bunifuButton1_Click(object sender, EventArgs e)
        {
            AddClient m = new AddClient();

            try
            {
                m.txtCompany.Text   = dgvUser.CurrentRow.Cells[1].Value.ToString();
                m.txtFirstName.Text = dgvUser.CurrentRow.Cells[2].Value.ToString();
                m.txtLastName.Text  = dgvUser.CurrentRow.Cells[3].Value.ToString();
                m.txtPhone.Text     = dgvUser.CurrentRow.Cells[4].Value.ToString();
                m.txtAdress.Text    = dgvUser.CurrentRow.Cells[6].Value.ToString();
                m.txtEmail.Text     = dgvUser.CurrentRow.Cells[5].Value.ToString();
                m.lblId.Text        = dgvUser.CurrentRow.Cells[0].Value.ToString();
                m.btnAdd.Text       = "Update";
                m.ShowDialog();
                RefreshClientDGV();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
    private void connectToServer()
    {
        try
        {
            _client = new TcpClient();
            _client.Connect(_server, _port);

            AddClient addRequest = new AddClient();



            addRequest.SetParameters(avatarID, 1);

            sendObject(addRequest);

            Debug.Log("Connected to server.");
        }
        catch (Exception e)
        {
            Debug.Log("Could not connect to server:");
            Debug.Log(e.Message);
        }
    }
Esempio n. 20
0
        public void AddClientPage()
        {
            using (var driver = DriverUtils.CreateWebDriver())
            {
                driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(10);
                driver.Navigate().GoToUrl(Config.GetUrl());

                var logInPage = new LogInPage(driver);

                logInPage.LogIn(LogInLogOut.Username(), LogInLogOut.Password());

                logInPage.ClickAddClient();


                var addClientPage = new AddClientPage(driver);

                driver.Title.ShouldBe(AddClient.AddClientPage());
                Console.WriteLine($"{AddClient.AddClientPage()} opens.");

                addClientPage.SelectTeacherID(AddClient.TeacherID());


                var client = new AddClient();
                addClientPage.FilloutContactInformation(client);
                addClientPage.SelectState(AddClient.State);
                addClientPage.FillZipCode(AddClient.zipCode);
                addClientPage.ClickSave();
                Thread.Sleep(1000);

                var tableText = addClientPage.GetTableText();

                Console.WriteLine(tableText);
                tableText.ShouldContain(client.FirstName);
                tableText.ShouldContain(client.LastName);
                tableText.ShouldContain(client.Email);
            }
        }
Esempio n. 21
0
        private void EditClientBtn_Click(object sender, RoutedEventArgs e)
        {
            ClientViewModel clientVM = dataGrid.SelectedItem as ClientViewModel;

            AddClient editClient = new AddClient(libraryItems, clientVM.Name, clientVM.SurName, libraryItems.First(i => i.Id == clientVM.LibraryId));

            if (editClient.ShowDialog().Value)
            {
                string           name    = editClient.Name.Text;
                string           surname = editClient.Surname.Text;
                LibraryViewModel model   = editClient.SelectedItem;

                if (clientVM != null && name != null && model != null)
                {
                    Client  clien   = clientController.GetById(clientVM.Id);
                    Library library = libraryController.GetById(model.Id);
                    clien.Name         = clientVM.Name = name;
                    clientVM.LibraryId = library.Id;
                    clien.Library      = library;
                    clien.Surname      = clientVM.SurName = surname;
                    clientController.Edit(clien);
                }
            }
        }
        static void Main()
        {
            // Create a WCF client that connects to the base client endpoint using HTTP.
            AddClient client = new AddClient("baseEndpoint");

            try
            {
                // Call the Add service operation over HTTP.
                double value1 = 100.00D;
                double value2 = 15.99D;
                double result = client.Add(value1, value2);
                Console.WriteLine();
                Console.WriteLine("Invoking the Add operation over HTTP:");
                Console.WriteLine("Add({0},{1}) = {2}", value1, value2, result);
                Console.WriteLine();

                // Close the client.
                client.Close();
            }
            catch (TimeoutException timeout)
            {
                Console.WriteLine(timeout.Message);
                Console.Read();
                client.Abort();
            }
            catch (CommunicationException commException)
            {
                Console.WriteLine(commException.Message);
                Console.Read();
                client.Abort();
            }

            // Create a WCF client that connects to another client endpoint using TCP.
            AddClient client2 = new AddClient("anotherEndpoint");

            try
            {
                // Call the Add service operation over TCP.
                double value1 = 10.00D;
                double value2 = 15.99D;
                double result = client2.Add(value1, value2);
                Console.WriteLine("Invoking the Add operation over TCP:");
                Console.WriteLine("Add({0},{1}) = {2}", value1, value2, result);

                // Close the WCF client.
                client2.Close();
            }
            catch (TimeoutException timeout)
            {
                Console.WriteLine(timeout.Message);
                Console.Read();
                client2.Abort();
            }
            catch (CommunicationException commException)
            {
                Console.WriteLine(commException.Message);
                Console.Read();
                client2.Abort();
            }

            Console.WriteLine();
            Console.WriteLine("Press <ENTER> to terminate client.");
            Console.ReadLine();
        }
        void RegisterUser()
        {
            long userid = Util.UserId;
            if (userid == 0)
            {
                // Oops, something went wrong, report it and bail out
                return;
            }

            using (Database db = new MySqlDatabase())
            {
                string lastname = LastName.Text;
                string firstname = FirstName.Text;
                string addressline1 = AddressLine1.Text;
                string addressline2 = AddressLine2.Text;
                string zipcode = Zipcode.Text;
                string state = State.Text;
                string city = City.Text;
                string country = Country.SelectedItem.Text;
                string telephone = Telephone.Text;
                string cellular = Cellular.Text;
                string companyname = "";
                string accountowner = AccountOwner.Text;
                string twitterid = TwitterID.Text;
                string facebookid = FacebookID.Text;
                string soniallid = SoniallID.Text;
                string ownerkind = OwnerKind.SelectedItem.Text;
                string creditcardnr = CreditCardNr.Text;
                string creditcardcvv = CVVNr.Text;
                string emailforreceipt = EmailForReceipt.Text;
                string referer = Referer.Text;
                long clientid = db.RegisterClientInfo(
                    lastname,
                    firstname,
                    addressline1,
                    addressline2,
                    zipcode,
                    state,
                    city,
                    country,
                    telephone,
                    cellular,
                    companyname,
                    userid,
                    accountowner,
                    senacode,
                    isrccode,
                    twitterid,
                    facebookid,
                    soniallid,
                    ownerkind,
                    creditcardnr,
                    creditcardcvv,
                    emailforreceipt,
                    referer);
                if (clientid == 0)
                {
                    ErrorMessage.Text = "Couldn't register your client information.";
                }
                else
                {
                    // We were successful, now register the user with WHMCS
                    string compositeLastname = lastname;
                    AddClient addClient = new AddClient();
                    addClient.Uri = new Uri("http://administratie.trackprotect.com/includes/api.php");
                    addClient.AddElement("user", "username");
                    addClient.AddElement("password", "password");
                    addClient.Method = "POST";
                    string countryIso2 = Util.GetCountryIso2(country);
                    string currencyIso = Util.GetCurrencyIsoNameByCountryIso2(countryIso2);
                    addClient.Client = new WhmcsClient() {
                        Firstname		= firstname,
                        Lastname		= compositeLastname,
                        Companyname		= companyname,
                        Email			= db.GetUserEmail(userid),
                        Address1		= addressline1,
                        Address2		= addressline2,
                        City			= city,
                        State			= state,
                        Postcode		= zipcode,
                        Country			= countryIso2,
                        Phonenumber		= telephone,
                        Password		= db.GetUserPassword(userid),
                        Currency		= Util.GetCurrencyId(currencyIso),
                        GroupId			= string.Empty,
                        Notes			= string.Empty,
                        CcType			= string.Empty,
                        Cardnumber		= string.Empty,
                        ExpiryDate		= DateTime.MaxValue,
                        StartDate		= DateTime.MaxValue,
                        Issuenumber		= string.Empty,
                        CustomFields	= string.Empty,
                        NoEmail			= false,
                        SkipValidation	= true,
                        Cvv				= string.Empty,
                        Credit			= 0m,
                        TaxExempt		= false,
                        Status			= string.Empty
                    };
                    addClient.Uri = new Uri("http://administratie.trackprotect.com/includes/api.php");
                    addClient.Username =  "******";
                    addClient.Password = "******";
                    addClient.SetElements();
                    XmlDocument doc = addClient.Transceive();
                    XmlNode element = doc.SelectSingleNode ("/whmcsapi/clientid");
                    int whmcsclientid = 0;
                    if (element != null)
                        whmcsclientid = Convert.ToInt32(element.InnerText);
                    db.UpdateUserWhmcsClientId(userid, whmcsclientid);

                    Response.Redirect("~/Member/SelectProduct.aspx");
                }
            }
        }
        private void pictureBox1_Click(object sender, EventArgs e)
        {
            AddClient a = new AddClient();

            a.ShowDialog();
        }
        private void panel2_Click(object sender, EventArgs e)
        {
            AddClient ac = new AddClient();

            ac.ShowDialog();
        }
Esempio n. 26
0
        private void GoToClientAdd(object sender, RoutedEventArgs e)
        {
            var addClient = new AddClient();

            NavigationService.Navigate(addClient);
        }
Esempio n. 27
0
 private void OnAddClient(SocketConnection sender)
 {
     AddClient?.Invoke(sender);
 }
        void obradi()
        {
            try
            {
                int operacija = 0;
                while (operacija != (int)Operacije.Kraj)
                {
                    TransferKlasa transfer = formater.Deserialize(tok) as TransferKlasa;
                    switch (transfer.Operacija)
                    {
                    case Operacije.Login:
                        FindAgent fa = new FindAgent();
                        transfer.Rezultat = fa.IzvrsiSO(transfer.TransferObjekat as OpstiDomenskiObjekat);
                        formater.Serialize(tok, transfer);
                        break;

                    case Operacije.AddClient:
                        AddClient ac = new AddClient();
                        transfer.Rezultat = ac.IzvrsiSO(transfer.TransferObjekat as OpstiDomenskiObjekat);
                        formater.Serialize(tok, transfer);
                        break;

                    case Operacije.GetListClients:
                        GetLIstClients glc = new GetLIstClients();
                        transfer.Rezultat = glc.IzvrsiSO(transfer.TransferObjekat as OpstiDomenskiObjekat);
                        formater.Serialize(tok, transfer);
                        break;

                    case Operacije.SearchClients:
                        SearchClients sc = new SearchClients();
                        transfer.Rezultat = sc.IzvrsiSO(transfer.TransferObjekat as OpstiDomenskiObjekat);
                        formater.Serialize(tok, transfer);
                        break;

                    case Operacije.SelectClient:
                        SelectClient scl = new SelectClient();
                        transfer.Rezultat = scl.IzvrsiSO(transfer.TransferObjekat as OpstiDomenskiObjekat);
                        formater.Serialize(tok, transfer);
                        break;

                    case Operacije.UpdateClient:
                        UpdateClient uc = new UpdateClient();
                        transfer.Rezultat = uc.IzvrsiSO(transfer.TransferObjekat as OpstiDomenskiObjekat);
                        formater.Serialize(tok, transfer);
                        break;

                    case Operacije.AddPolicy:
                        AddPolicy ap = new AddPolicy();
                        transfer.Rezultat = ap.IzvrsiSO(transfer.TransferObjekat as OpstiDomenskiObjekat);
                        formater.Serialize(tok, transfer);
                        break;

                    case Operacije.UpdatePolicy:
                        UpdatePolicy up = new UpdatePolicy();
                        transfer.Rezultat = up.IzvrsiSO(transfer.TransferObjekat as OpstiDomenskiObjekat);
                        formater.Serialize(tok, transfer);
                        break;

                    case Operacije.DeletePolicy:
                        DeletePolicy dp = new DeletePolicy();
                        transfer.Rezultat = dp.IzvrsiSO(transfer.TransferObjekat as OpstiDomenskiObjekat);
                        formater.Serialize(tok, transfer);
                        break;

                    case Operacije.SearchPolicy:
                        SearchPolicy sp = new SearchPolicy();
                        transfer.Rezultat = sp.IzvrsiSO(transfer.TransferObjekat as OpstiDomenskiObjekat);
                        formater.Serialize(tok, transfer);
                        break;

                    case Operacije.SelectPolicy:
                        SelectPolicy spo = new SelectPolicy();
                        transfer.Rezultat = spo.IzvrsiSO(transfer.TransferObjekat as OpstiDomenskiObjekat);
                        formater.Serialize(tok, transfer);
                        break;

                    case Operacije.GetListInsTypes:
                        GetListInsuranceTypes git = new GetListInsuranceTypes();
                        transfer.Rezultat = git.IzvrsiSO(transfer.TransferObjekat as OpstiDomenskiObjekat);
                        formater.Serialize(tok, transfer);
                        break;

                    case Operacije.DeleteClient:
                        DeleteClient dc = new DeleteClient();
                        transfer.Rezultat = dc.IzvrsiSO(transfer.TransferObjekat as OpstiDomenskiObjekat);
                        formater.Serialize(tok, transfer);
                        break;

                    case Operacije.Kraj:
                        operacija = 1;
                        Server.listaTokova.Remove(tok);
                        break;

                    default:
                        break;
                    }
                }
            }
            catch (Exception)
            {
                Server.listaTokova.Remove(tok);
            }
        }
        private void metroButton6_Click(object sender, EventArgs e)
        {
            AddClient a = new AddClient();

            a.ShowDialog();
        }
Esempio n. 30
0
        private void BtnAfficherClient_Click(object sender, RoutedEventArgs e)
        {
            AddClient AC = new AddClient(inputNum.Text, "");

            this.NavigationService.Navigate(AC);
        }
        private void clientToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            AddClient a = new AddClient();

            a.ShowDialog();
        }