private async void UpdateUI()
        {
            try
            {
                if (_currentClasse == null)
                {
                    nbParticipant.Text = "";
                    Liste.Clear();

                    return;
                }

                ShowLoader();

                await DataManager.Instance.UpdateListeEleveByIdClassroom(_currentClasse.Id);

                //Attendre 1 seconde
                await Task.Delay(1000);

                nbParticipant.Text = DataManager.Instance.ListEleves.Where(x => x.IdClasse == _currentClasse.Id).Count().ToString() + " participant(s)";
                Liste = new ObservableCollection <Eleve>(DataManager.Instance.ListEleves.Where(x => x.IdClasse == _currentClasse.Id).OrderBy(x => x.Nom));
            }
            catch (Exception ex)
            {
                AlertError.ShowErrorAlert("Un problème à eu lieu lors de la mise à jour du contenu");
            }
            finally
            {
                HideLoader();
            }
        }
 private void button3_Click(object sender, EventArgs e)
 {
     if (this.textBox1.Text.Length < 4)
     {
         AlertError alertError = new AlertError();
         alertError.method_0("Information", "Fill all data");
         alertError.ShowDialog();
     }
     else
     {
         byte[] bytes = Encoding.Default.GetBytes(Class16.smethod_2(this.textBox1.Text));
         int num = bytes.Length - 4;
         int num2 = Class15.smethod_2(bytes);
         if (num != num2)
         {
             AlertError alertError = new AlertError();
             alertError.method_0("Habbo Security Filter", "If you send it, Habbo will be disconnected, NovoFatum" + Environment.NewLine + " R3 won't send the data");
             alertError.ShowDialog();
         }
         else
         {
             if (Class1.class19_0 != null)
             {
                 Class1.class19_0.method_7(bytes);
             }
         }
     }
 }
Example #3
0
 public async Task Init()
 {
     try
     {
         ListClasses = new ObservableCollection <Classe>(await ApiManager.Instance.GetListClassrooms());
     }
     catch (Exception ex)
     {
         AlertError.ShowErrorAlert(ex.Message);
     }
 }
 private void UpdateMatiereUI()
 {
     try
     {
         //ListeMatiere = new ObservableCollection<Matiere>(DataManager.Instance.ListMatieres);
     }
     catch (Exception ex)
     {
         AlertError.ShowErrorAlert("Un problème à eu lieu lors de la mise à jour du contenu des matières");
     }
 }
Example #5
0
        // =============================================================================

        #region Eleves
        public async Task UpdateListeEleveByIdClassroom(int idClassroom)
        {
            try
            {
                ListEleves = new ObservableCollection <Eleve>(
                    await ApiManager.Instance.GetListElevesByIdClassroom(idClassroom));
            }
            catch (Exception ex)
            {
                AlertError.ShowErrorAlert(ex.Message);
            }
        }
Example #6
0
 public async Task <Matiere> DeleteMatiere(int id)
 {
     try
     {
         return(await ApiManager.Instance.DeleteMatiereById(id));
     }
     catch (Exception ex)
     {
         AlertError.ShowErrorAlert(ex.Message);
         return(null);
     }
 }
Example #7
0
 public async Task <Matiere> AddMatiere(int idClassroom, MatiereAdded e)
 {
     try
     {
         return(await ApiManager.Instance.AddMatiereByIdClassroom(idClassroom, e));
     }
     catch (Exception ex)
     {
         AlertError.ShowErrorAlert(ex.Message);
         return(null);
     }
 }
 private void button1_Click(object sender, EventArgs e)
 {
     if (Class6.string_0 != "")
     {
         AlertError alertError = new AlertError();
         alertError.method_0("Information", "Currently connected!");
         alertError.ShowDialog();
     }
     else
     {
         Class0.main_0.method_14();
     }
 }
Example #9
0
        public async Task DeleteClasse(int id)
        {
            try
            {
                Classe classroom = await ApiManager.Instance.DeleteClassroomById(id);

                ListClasses.Remove(classroom);
            }
            catch (Exception ex)
            {
                AlertError.ShowErrorAlert(ex.Message);
            }
        }
Example #10
0
        // =============================================================================
        #region Matieres

        public async Task <ObservableCollection <Matiere> > GetListMatieresByIdClassroom(int idClassroom)
        {
            try
            {
                return(new ObservableCollection <Matiere>(
                           await ApiManager.Instance.GetListMatieresByIdClassroom(idClassroom)));
            }
            catch (Exception ex)
            {
                AlertError.ShowErrorAlert(ex.Message);
                return(null);
            }
        }
Example #11
0
        public async Task DeleteEleve(int id)
        {
            try
            {
                Eleve eleve = await ApiManager.Instance.DeleteEleveById(id);

                ListEleves.Remove(eleve);
            }
            catch (Exception ex)
            {
                AlertError.ShowErrorAlert(ex.Message);
            }
        }
Example #12
0
        public async Task AddEleve(int idClassroom, EleveAdded e)
        {
            try
            {
                Eleve eleve = await ApiManager.Instance.AddEleveByIdClassroom(idClassroom, e);

                ListEleves.Add(eleve);
            }
            catch (Exception ex)
            {
                AlertError.ShowErrorAlert(ex.Message);
            }
        }
 private void button1_Click(object sender, EventArgs e)
 {
     Class1.bool_2 = !Class1.bool_2;
     if (Class1.bool_2)
     {
         AlertError error = new AlertError();
         error.method_0("Information", "Click one to unistall!");
         error.ShowDialog();
         this.timer_0.Start();
     }
     else
     {
         this.timer_0.Stop();
     }
 }
Example #14
0
        // =============================================================================
        #region Classes
        public async Task AddClasse(ClasseAdded c)
        {
            try
            {
                if (ListClasses.FirstOrDefault(x => x.Nom == c.Nom) != null)
                {
                    throw new Exception("Une classe avec ce nom existe déjà !");
                }

                Classe classroom = await ApiManager.Instance.AddClassroom(c);

                ListClasses.Add(classroom);
            }
            catch (Exception ex)
            {
                AlertError.ShowErrorAlert(ex.Message);
            }
        }
Example #15
0
        protected void cmdSave_ServerClick(object sender, System.EventArgs e)
        {
            if (!SaveCheck())
            {
                return;
            }

            AlertError alertError = new AlertError();

            alertError.ItemSequence  = this.txtAlertItemSequence.Text;
            alertError.ItemType      = this.ddlItemType.SelectedValue;
            alertError.ErrorCode     = this.txtErrorCode.Text;
            alertError.TimeDimension = this.rblTimeDimensionGroup.SelectedValue;

            //是否区分线别
            if (this.chbLineDivision.Checked)
            {
                alertError.LineDivision = "Y";
            }
            else
            {
                alertError.LineDivision = "N";
            }

            //产生预警通告
            if (this.chbGenerateNotice.Checked)
            {
                alertError.GenerateNotice = "Y";
            }
            else
            {
                alertError.GenerateNotice = "N";
            }

            //发送邮件
            if (this.chbSendMail.Checked)
            {
                int count = this._AlertFacade.QueryAlertMailSettingsCount(alertError.ItemSequence);
                if (count > 0)
                {
                    alertError.SendMail = "Y";
                }
                else
                {
                    WebInfoPublish.Publish(this, "$Error_EmailSetup_Need", this._LanguageComponent1);
                    return;
                }
            }
            else
            {
                alertError.SendMail = "N";
            }

            //停线控制
            if (this.chbLinePause.Checked)
            {
                alertError.LinePause = "Y";
            }
            else
            {
                alertError.LinePause = "N";
            }

            alertError.AlertValue   = int.Parse(this.txtAlertStandard.Text);
            alertError.MaintainDate = FormatHelper.TODateInt(DateTime.Now.ToShortDateString());
            alertError.MaintainTime = FormatHelper.TOTimeInt(DateTime.Now);
            alertError.MaintainUser = this.GetUserCode();

            this._AlertFacade.SaveAlertError(alertError);
            WebInfoPublish.Publish(this, "$CS_Save_Success", this._LanguageComponent1);
        }
Example #16
0
 public static void smethod_2(string string_2)
 {
     try
     {
         Class24.class25_0 = new Class25();
         Class23 @class = new Class23(string_2, 10);
         string text = @class.method_5(Class24.class23_2, Class24.class23_0).method_3(16).ToLower();
         Class24.class25_0.method_0(Class26.smethod_1(text));
         while (!Class24.class25_0.bool_0)
         {
         }
     }
     catch
     {
         AlertError alertError = new AlertError();
         alertError.method_0("Exploit error", "Try again! Failure exploiting!");
         alertError.ShowDialog();
     }
 }
Example #17
0
 private void Main_Load(object sender, EventArgs e)
 {
     Class0.main_0.method_15();
     AlertError error = new AlertError();
     error.method_0("[Pwned Habbo patch release]", "NovoFatum is a free program. You can download \nfree from Habbo-Dev.com, ShenkX.co.uk, \nDarkbox.nl or KekoMundo.com\nWait for NF4 8-)");
     error.ShowDialog();
 }
Example #18
0
 public void method_2()
 {
     AlertError error = new AlertError();
       error.method_0("Information", "Connection closed, reconnect!");
     error.ShowDialog();
 }
 private void openFileDialog_0_FileOk(object sender, CancelEventArgs e)
 {
     if (this.openFileDialog_0.FileName != "")
     {
         bool flag = Class1.class11_0.method_4(this.openFileDialog_0.FileName);
         Debug.WriteLine(this.method_1());
         if (!flag)
         {
             AlertError error = new AlertError();
             error.method_0("Error", "Invalid plugin file");
             error.ShowDialog();
         }
         else
         {
             string str = this.method_1();
             File.Copy(this.openFileDialog_0.FileName, Environment.CurrentDirectory + @"\data\plugins\" + str);
             Class1.class11_0.method_7(Environment.CurrentDirectory + @"\data\plugins\" + str);
             this.method_0();
         }
     }
 }
Example #20
0
 private void label3_Click(object sender, EventArgs e)
 {
     AlertError error = new AlertError();
     StringBuilder builder = new StringBuilder();
     builder.AppendLine("Twitter: @RSALittleJ");
     builder.AppendLine("Habbo: RSALittleJ/RSALittleJ1");
     builder.AppendLine("MSN: [email protected]/Skype: littlejkm");
     error.method_0("Contact me", builder.ToString());
     error.ShowDialog();
 }