Esempio n. 1
0
        public override void Run(IPXCPluginRunArgs args)
        {
            base.Run(args);
            try
            {
                //PMXファイルを操作するためにおまじない。
                this.args = args;
                this.conn = args.Connector;
                this.PMX  = PXCBridge.GetCurrentPmx(this.conn);

                //-----------------------------------------------------------ここから-----------------------------------------------------------
                //ここから処理開始
                //-----------------------------------------------------------ここから-----------------------------------------------------------

                System.Diagnostics.Process.Start("http://walogia.ucoz.club/donate.html");


                IPXPmx iPXPmx = base.m_bld.Pmx();
                iPXPmx.FromFile(System.IO.Directory.GetCurrentDirectory() + @"\_plugin\User\Scale\model\Scale by iRon0129.pmx");
                this.scale = PXCBridge.RegisterUIModel(args.Connector, iPXPmx, "不知道起什么", null, true, true);
                //-----------------------------------------------------------ここまで-----------------------------------------------------------
                //処理ここまで
                //-----------------------------------------------------------ここまで-----------------------------------------------------------
                //必要がある場合はモデル・画面を更新します。
                Thread.Sleep(10000);
                scale.Release();

                this.Update();
            }
            catch (Exception ex)
            {
                // 例外処理
                MessageBox.Show(ex.Message);
            }
        }
 public override void Run(IPXCPluginRunArgs args)
 {
     base.Run(args);
     try
     {
         if (ctrlForm == null)
         {
             ctrlForm         = new CtrlForm(args);
             ctrlForm.Visible = true;
         }
         else
         {
             ctrlForm.Visible = true;
         }
     }
     catch (Exception ex)
     {
     }
 }
Esempio n. 3
0
 public CtrlForm(IPXCPluginRunArgs args)
 {
     InitializeComponent();
     this.args = args;
 }