コード例 #1
0
ファイル: Twitter.cs プロジェクト: RadiumProduction/Birth
 public Twitter(List <Tokens> fromtokens, int frominterval, SetData fromsetdata, NG_Data fromngdatas)
 {
     setdata  = fromsetdata;
     interval = frominterval * 1000;
     tokens   = fromtokens;
     ng_datas = fromngdatas;
     check_num.RT_Limited_Event += new Check_Num.RT_Limited_EventHandler(RT_Limited);
 }
コード例 #2
0
        public void NewSetting()
        {
            setting = new Setting(Base_Grid, setdata, account, tokens, ng_datas, color_list);
            setting.Window(this);
            setting.tab[W.AC].DelAccEvent     += Delete_Account;
            setting.tab[W.RE].DelAccEvent     += Delete_Account;
            setting.tab[W.CL].ChangeLangEvent += Change_Langage;

            foreach (var tab in setting.tab)
            {
                tab.SetInfoBox(info);
                tab.SettingKeyErea(key_erea);
            }
            ng_datas = setting.ng_datas;
            Color_Set();
            setting.Margin = new Thickness(0, Title_Grid.Height, 0, 0);
            Change_Size();
        }
コード例 #3
0
 private void Load_NGdata()
 {
     ng_datas = new NG_Data();
     if (System.IO.File.Exists(Pass.ng))
     {
         DataContractSerializer serializer = new DataContractSerializer(typeof(NG_Data));
         XmlReader xr = XmlReader.Create(Pass.ng);
         try
         {
             ng_datas = (NG_Data)serializer.ReadObject(xr);
             xr.Close();
         }
         catch
         {
             xr.Close();
             System.IO.File.Delete(Pass.ng);
         }
     }
 }