public async void Save_Update()
        {
            Process Process          = new Process();
            string  Opreation_Number = Process.Get_Process_Number();

            Process.Download_Update(Opreation_Number);

            IFirebaseConfig Config = new FirebaseConfig
            {
                AuthSecret = "VH1rdiDgj2hzD0WN5JZ67BSXTN7OdOeM0fnry50G",
                BasePath   = "https://ctm-db.firebaseio.com/"
            };

            IFirebaseClient Client = new FireSharp.FirebaseClient(Config);

            FirebaseResponse Respose = await Client.GetTaskAsync("Number_Process/" + "Now");

            FireBase_Counter Data = Respose.ResultAs <FireBase_Counter>();

            int Counter = int.Parse(Data.Counter);

            Counter--;

            Process.Update_Process_Number(Counter.ToString());
        }
        public async void Save_Process(string Type, string Department, string Id, string _Owner)
        {
            IFirebaseConfig Config = new FirebaseConfig
            {
                AuthSecret = "VH1rdiDgj2hzD0WN5JZ67BSXTN7OdOeM0fnry50G",
                BasePath   = "https://ctm-db.firebaseio.com/"
            };

            IFirebaseClient Client = new FireSharp.FirebaseClient(Config);

            FirebaseResponse Respose = await Client.GetTaskAsync("Number_Process/" + "Now");

            FireBase_Counter Data = Respose.ResultAs <FireBase_Counter>();

            string Counter = Data.Counter;

            var Process_Data = new FireBase_Process
            {
                Number    = Counter,
                Code      = Get_Process_Code(Type, Department),
                Record_Id = Id,
                Owner     = _Owner
            };

            SetResponse Process_Respose = await Client.SetTaskAsync("Process/" + Counter, Process_Data);

            Update_Counter((int.Parse(Counter) + 1).ToString());

            return;
        }
        public async void Counter_Defult()
        {
            IFirebaseConfig Config = new FirebaseConfig
            {
                AuthSecret = "VH1rdiDgj2hzD0WN5JZ67BSXTN7OdOeM0fnry50G",
                BasePath   = "https://ctm-db.firebaseio.com/"
            };

            IFirebaseClient Client = new FireSharp.FirebaseClient(Config);

            var Number_Process_Data = new FireBase_Counter
            {
                Counter = "1"
            };

            SetResponse Respose = await Client.SetTaskAsync("Number_Process/" + "Now", Number_Process_Data);
        }
        public async void Update_Counter(string Value)
        {
            IFirebaseConfig Config = new FirebaseConfig
            {
                AuthSecret = "VH1rdiDgj2hzD0WN5JZ67BSXTN7OdOeM0fnry50G",
                BasePath   = "https://ctm-db.firebaseio.com/"
            };

            IFirebaseClient Client = new FireSharp.FirebaseClient(Config);

            var Number_Process_Data = new FireBase_Counter
            {
                Counter = Value
            };

            SetResponse Respose = await Client.SetTaskAsync("Number_Process/" + "Now", Number_Process_Data);

            Update_Process_Number((int.Parse(Value) - 1).ToString());
        }
        public async void Download_Update(string Currnt_Opreation)
        {
            IFirebaseConfig Config = new FirebaseConfig
            {
                AuthSecret = "VH1rdiDgj2hzD0WN5JZ67BSXTN7OdOeM0fnry50G",
                BasePath   = "https://ctm-db.firebaseio.com/"
            };

            IFirebaseClient Client = new FireSharp.FirebaseClient(Config);

            FirebaseResponse Respose = await Client.GetTaskAsync("Number_Process/" + "Now");

            FireBase_Counter Data = Respose.ResultAs <FireBase_Counter>();

            int Counter = int.Parse(Data.Counter);

            List <Process> All_Process = new List <Process>();

            int Start;

            if (int.Parse(Currnt_Opreation) == 0)
            {
                Start = 1;
            }
            else
            {
                Start = int.Parse(Currnt_Opreation) + 1;
            }

            for (int i = Start; i < Counter; i++)
            {
                FirebaseResponse Process_Respose = await Client.GetTaskAsync("Process/" + i);

                FireBase_Process Process_Data = Process_Respose.ResultAs <FireBase_Process>();

                Process Process = new Process(Process_Data.Number, Process_Data.Code, Process_Data.Record_Id, Process_Data.Owner);
                All_Process.Add(Process);
            }

            List <Process> NonExcuted_Process = new List <Process>();

            int Number_Process = All_Process.Count;

            for (int i = 0; i < Number_Process; i++)
            {
                bool Cheak_Save = Cheak_If_Save(All_Process[i]);

                bool Cheak_Delete = Cheak_If_Delete(All_Process[i]);

                if (Cheak_Save == true)
                {
                    bool Excut_this = true;

                    for (int y = i + 1; y < Number_Process; y++)
                    {
                        Cheak_Delete = Cheak_If_Delete(All_Process[y]);

                        if (All_Process[i].Record_Id == All_Process[y].Record_Id && Cheak_Delete == true)
                        {
                            Excut_this = false;
                            NonExcuted_Process.Add(All_Process[y]);
                            break;
                        }
                    }
                    if (Excut_this == true)
                    {
                        Excute_Process(All_Process[i]);
                    }
                }
                else if (Cheak_Delete == true)
                {
                    bool Process_Exist = If_Process_Exist(NonExcuted_Process, All_Process[i]);

                    if (Process_Exist == false)
                    {
                        Excute_Process(All_Process[i]);
                    }
                }
                else
                {
                    Excute_Process(All_Process[i]);
                }
            }
            return;
        }