Esempio n. 1
0
        public override void _runCreate(string nUrl)
        {
            PlatformSingleton platformSingleton_ = __singleton <PlatformSingleton> ._instance();

            platformSingleton_._newUdl <Udl>(this, nUrl);
            base._runCreate(nUrl);
        }
Esempio n. 2
0
        public override void _runLoad(string nUrl)
        {
            PlatformSingleton platformSingleton_ = __singleton <PlatformSingleton> ._instance();

            platformSingleton_._loadUdl <Udl>(this, nUrl);
            base._runLoad(nUrl);
        }
Esempio n. 3
0
        public override void _runDel()
        {
            PlatformSingleton platformSingleton_ = __singleton <PlatformSingleton> ._instance();

            string udlUrl_ = this._getUrl();

            platformSingleton_._deleteUdl <Udl>(this, udlUrl_);
            base._runDel();
        }
Esempio n. 4
0
        static void _startApp()
        {
            string appUrl_ = @"local://";

            appUrl_ += HostingEnvironment.MapPath(@"~\platform\appUrl.xml");
            PlatformSingleton platformSingleton_ = __singleton <PlatformSingleton> ._instance();

            platformSingleton_._startApp(appUrl_);
        }
Esempio n. 5
0
        public void _runStart()
        {
            string         mysqlUrl_       = @"url://www.wanmei.com/weibo\weibo/config*MySqlConfig.xml";
            MySqlSingleton mySqlSingleton_ = __singleton <MySqlSingleton> ._instance();

            PlatformSingleton platformSingleton_ = __singleton <PlatformSingleton> ._instance();

            platformSingleton_._loadHeadstream <MySqlSingleton>(mySqlSingleton_, mysqlUrl_);

            StatusMgr._runInit();
        }
Esempio n. 6
0
        public void _runStart()
        {
            string            moneyConfigUrl_    = @"rid://money.moneyConfig";
            PlatformSingleton platformSingleton_ = __singleton <PlatformSingleton> ._instance();

            MoneyConfig moneyConfig_ = __singleton <MoneyConfig> ._instance();

            platformSingleton_._loadHeadstream <MoneyConfig>(moneyConfig_, moneyConfigUrl_);

            MoneyMgr._runInit();
        }
Esempio n. 7
0
        public override void _runCommand()
        {
            PlatformSingleton platformSingleton_ = __singleton <PlatformSingleton> ._instance();

            string formUrl_           = @"uid://notepad.implement.window:window.optimal.Form";
            string openFileDialogUrl_ = @"rid://notepad.implement.openFileDialogUrl";
            IForm  openFileDialog_    = platformSingleton_._loadHeadstream <IForm>(formUrl_, openFileDialogUrl_);

            openFileDialog_._runInit();
            openFileDialog_._showDialog();
        }
Esempio n. 8
0
        public override void _runCommand()
        {
            PlatformSingleton platformSingleton_ = __singleton <PlatformSingleton> ._instance();

            string formUrl_       = @"uid://notepad.implement.window:window.optimal.Form";
            string newProjectUrl_ = @"rid://notepad.implement.newProjectFormUrl";
            IForm  projectForm_   = platformSingleton_._loadHeadstream <IForm>(formUrl_, newProjectUrl_);

            projectForm_._runInit();
            projectForm_._showDialog();
        }
Esempio n. 9
0
        public override void _runSave()
        {
            string uflUrl_ = this._getUrl();

            if (null == uflUrl_)
            {
                return;
            }
            PlatformSingleton platformSingleton_ = __singleton <PlatformSingleton> ._instance();

            platformSingleton_._saveHeadstream <StdUfl>(this, uflUrl_);
            base._runSave();
        }
Esempio n. 10
0
        public override void _runLoad(string nUrl)
        {
            string url_ = this._getUrl();

            if (null != url_)
            {
                throw new LoadHaveUrlException();
            }
            PlatformSingleton platformSingleton_ = __singleton <PlatformSingleton> ._instance();

            platformSingleton_._loadHeadstream <StdUfl>(this, nUrl);
            base._runLoad(nUrl);
        }
Esempio n. 11
0
        public override void _runDel()
        {
            string uflUrl_ = this._getUrl();

            if (null == uflUrl_)
            {
                return;
            }
            PlatformSingleton platformSingleton_ = __singleton <PlatformSingleton> ._instance();

            platformSingleton_._delHeadstream(uflUrl_);
            base._runDel();
        }
Esempio n. 12
0
        public override void _runDel()
        {
            string udlUrl_ = this._getUrl();

            if (null == udlUrl_)
            {
                return;
            }
            PlatformSingleton platformSingleton_ = __singleton <PlatformSingleton> ._instance();

            platformSingleton_._deleteStdUdl <StdUdl>(this, udlUrl_);
            base._runDel();
        }
Esempio n. 13
0
        public override void _runCreate(string nUrl)
        {
            string url_ = this._getUrl();

            if (null != url_)
            {
                throw new CreateHaveUrlException();
            }
            PlatformSingleton platformSingleton_ = __singleton <PlatformSingleton> ._instance();

            platformSingleton_._newStdUdl <StdUdl>(this, nUrl);
            base._runCreate(nUrl);
        }
Esempio n. 14
0
        public void _runInit()
        {
            string            accountConfigUrl_  = @"rid://account.accoutConfig";
            PlatformSingleton platformSingleton_ = __singleton <PlatformSingleton> ._instance();

            AccountConfig accountConfig_ = __singleton <AccountConfig> ._instance();

            platformSingleton_._loadHeadstream <AccountConfig>(accountConfig_, accountConfigUrl_);

            uint accountMgrCount_ = accountConfig_._getAccountMgrCount();

            for (uint i = 0; i < accountMgrCount_; ++i)
            {
                AccountMgr accountMgr_ = new AccountMgr();
                accountMgr_._setId(i);
                mAccountMgrs[i] = accountMgr_;
            }
        }
Esempio n. 15
0
        public override void _runCommand()
        {
            IContain contain_ = this._getOwner() as IContain;
            IForm    form_    = contain_._contain() as IForm;

            ITextBox fileUrlTextBox_  = form_._childControl("panel1/fileUrl") as ITextBox;
            ITextBox fileNameTextBox_ = form_._childControl("panel1/fileName") as ITextBox;
            string   fileUrl_         = fileUrlTextBox_._getText();
            string   fileName_        = fileNameTextBox_._getText();

            if (null == fileUrl_ || "" == fileUrl_)
            {
                return;
            }
            if (null == fileName_ || "" == fileName_)
            {
                return;
            }
            IListView         listView_  = form_._childControl("panel2/listView1") as IListView;
            IList <IListItem> listItems_ = listView_._selectedItems();

            if (listItems_.Count <= 0)
            {
                return;
            }

            NewProjectNodeCommand newProjectNodeCommand_ = listItems_[0] as NewProjectNodeCommand;
            string            commandUrl_        = newProjectNodeCommand_._getCommandUrl();
            NewProjectArg     newProjectArg_     = new NewProjectArg(fileUrl_, fileName_);
            PlatformSingleton platformSingleton_ = __singleton <PlatformSingleton> ._instance();

            ICommand command_ = platformSingleton_._findInterface <ICommand>(commandUrl_);

            command_._setOwner(newProjectArg_);
            command_._runCommand();
            form_._runClose();
        }