public ActivityRssRegistAddCat(ActivityTopicRegist arr, int mode, string target, int centerX, int centerY)
 {
     InitializeComponent();
     this.arr = arr;
     this.mode = mode;
     this.StartPosition = FormStartPosition.Manual;
     this.KeyPreview = true;
     this.Location = new System.Drawing.Point(centerX - this.Width / 2, centerY - this.Height / 2);
     initWindow(target);
 }
Ejemplo n.º 2
0
        protected virtual bool initActivity()
        {
            try
            {
                //トークアクティビティの初期化
                at = new ActivityTalk(this,os,oss);

                //ニコブラウザ
                anb = new ActivityNicoBrowser();

                //ピクチャーアクティビティの初期化
                ap = new ActivityPic();

                //Rss
                ar = new ActivityTopicRegist(this,this.os, this.owf);

                //Log
                al = new ActivityLog(this, this.os, obr, this.owf);

                //Char
                ac = new ActivityChar(this, ossList, this.os.loadSkin, this.owf);

                //設定
                ast = new ActivitySetting(this, this.os, this.owf);

                //
                act = new ActivityChat(this, this.os, this.obr,this.owf);

                //オーナーフォーム登録
                this.AddOwnedForm(at);
                this.AddOwnedForm(anb);
                this.AddOwnedForm(ap);
                return true;
            }
            catch (Exception err)
            {
                LpsLogControllerCus.writingLog(this.GetType().Name, MethodBase.GetCurrentMethod().Name, err.ToString());
                return false;
            }
        }
Ejemplo n.º 3
0
        protected override bool initActivity()
        {
            try
            {
                //トークアクティビティの初期化
                at = new ActivityTalkMini(this, os,oss);

                //以下は親クラスと同様 2013/06/23 ver3.0.1現在
                ar = new ActivityTopicRegist(this, this.os, this.owf);
                al = new ActivityLog(this, this.os, obr, this.owf);
                ac = new ActivityChar(this, ossList, this.os.loadSkin, this.owf);
                ast = new ActivitySetting(this, this.os, this.owf);

                //オーナーフォーム登録
                this.AddOwnedForm(at);
                return true;
            }
            catch (Exception err)
            {
                LpsLogControllerCus.writingLog(this.GetType().Name, MethodBase.GetCurrentMethod().Name, err.ToString());
                return false;
            }
        }