private void EditClientButton_Click(object sender, System.EventArgs e)
        {
            Models.DataBaseContext dataBaseContext = null;
            try
            {
                dataBaseContext =
                    new Models.DataBaseContext();

                System.Windows.Forms.DialogResult dialogResult = Mbb.Windows.Forms.MessageBox.Show
                                                                     (text: "آیا برای انجام تغییر اطمینان دارید؟",
                                                                     caption: "دستور ویرایش",
                                                                     icon: Mbb.Windows.Forms.MessageBoxIcon.Question,
                                                                     button: Mbb.Windows.Forms.MessageBoxButtons.YesNo);

                if (dialogResult == System.Windows.Forms.DialogResult.Yes)
                {
                    Models.PermanentClient permanentClient =
                        new Models.PermanentClient
                    {
                        Client_ID = ClientID_New,
                        Full_Name = FullName_New,
                    };

                    dataBaseContext.SaveChanges();

                    Infrastructure.Utility.WindowsNotification
                        (message: "ویرایش انجام شد.",
                        caption: Infrastructure.PopupNotificationForm.Caption.موفقیت);

                    #region EventLog
                    Username   = Program.AuthenticatedUser.Username;
                    FullName   = $"{Program.AuthenticatedUser.First_Name} {Program.AuthenticatedUser.Last_Name}";
                    EventDate  = $"{Infrastructure.Utility.PersianCalendar(System.DateTime.Now)}";
                    EventTime  = $"{Infrastructure.Utility.ShowTime()}";
                    EventTitle = $"ویرایش کد {ClientID_FirstLoad} به {ClientID_New} و یا نام {FullName_FirstLoad} به {FullName_New}";

                    Infrastructure.Utility.EventLog
                        (username: Username,
                        fullName: FullName,
                        eventDate: EventDate,
                        eventTime: EventTime,
                        eventTitle: EventTitle);
                    #endregion /EventLog
                }
            }
            catch (System.Exception ex)
            {
                Infrastructure.Utility.ExceptionShow(ex);
            }
            finally
            {
                if (dataBaseContext != null)
                {
                    dataBaseContext.Dispose();
                    dataBaseContext = null;
                }
            }
        }
        private void ClientLoad(string clientID)
        {
            Models.DataBaseContext dataBaseContext = null;
            try
            {
                dataBaseContext =
                    new Models.DataBaseContext();

                Models.PermanentClient permanentClient =
                    dataBaseContext.PermanentClients
                    .Where(current => string.Compare(current.Client_ID, clientID) == 0)
                    .FirstOrDefault();

                if (permanentClient != null)
                {
                    ClientID_FirstLoad = permanentClient.Client_ID;
                    FullName_FirstLoad = permanentClient.Full_Name;
                }

                if (ClientID_FirstLoad.StartsWith("09"))
                {
                    clientIDTextBox.Text = ClientID_FirstLoad.Insert(4, "-");
                }

                fullNameTextBox.Text = FullName_FirstLoad;
            }
            catch (System.Exception ex)
            {
                Infrastructure.Utility.ExceptionShow(ex);
            }
            finally
            {
                if (dataBaseContext != null)
                {
                    dataBaseContext.Dispose();
                    dataBaseContext = null;
                }
            }
        }
        //-----End of coding line.

        #region Founctions
        //-----
        #region Validation_ClientID
        private bool Validation_ClientID(string clientID)
        {
            bool status = false;

            Models.DataBaseContext dataBaseContext = null;

            dataBaseContext =
                new Models.DataBaseContext();

            Models.PermanentClient client =
                dataBaseContext.PermanentClients
                .Where(current => string.Compare(current.Client_ID, clientID) == 0)
                .FirstOrDefault();

            if (client == null)
            {
                status = true;
            }
            else
            {
                status = false;
            }
            return(status);
        }