示例#1
0
        public void RT_Limited(object sender, Num_With args)
        {
            //Stop();
            //Dispatcher.Run

            On_RT_Stop_Event(new EventArgs());
        }
示例#2
0
 protected virtual void On_RT_Limited_Event(Num_With args)
 {
     if (RT_Limited_Event != null)
     {
         RT_Limited_Event(this, args);
     }
 }
示例#3
0
 private void Change_Langage(object sender, Num_With args)
 {
     setdata.Close_Ready();
     setting.Clear(setting);
     NewSetting();
     setting.Visibility = Visibility.Visible;
     setting.Tab_Hidden(setting.tab[W.RT]);
     setting.Tab_Visility(setting.tab[W.CL]);
     setting.num = W.CL;
     setting.Set_KeyEvent();
 }
示例#4
0
        private void Delete_Account(object sender, Num_With e)
        {
            int num = e.Number;

            try
            {
                if (num != -1)
                {
                    System.IO.File.Delete(Pass.pindir + "/" + tokens[num].token.UserId + ".xml");
                }
                else
                {
                    foreach (var token in tokens)
                    {
                        System.IO.File.Delete(Pass.pindir + "/" + token.token.UserId + ".xml");
                    }
                }
            }
            catch { }
            if (num != -1)
            {
                tokens.RemoveAt(num);
            }
            else
            {
                tokens.Clear();
            }
            account.Clear(account);
            account = new Account(Accont_Erea, tokens, color_list);
            account.add.MouseLeftButtonDown += Add_Account;


            setting.Clear(setting);
            NewSetting();


            setting.Visibility = Visibility.Visible;
            setting.Tab_Hidden(setting.tab[W.RT]);
            if (num != -1)
            {
                setting.Tab_Visility(setting.tab[W.AC]);
                setting.num = W.AC;
            }
            else
            {
                setting.Tab_Visility(setting.tab[W.RE]);
                setting.num = W.RE;
            }
            setting.Set_KeyEvent();
        }