Example #1
0
 public override void _runInit()
 {
     PlatformSingleton platformSingleton_ = __singleton<PlatformSingleton>._instance();
     mTextChangedCommand = platformSingleton_._findInterface<ICommand>(mTextChangedCmd);
     if (null != mTextChangedCommand)
     {
         mTextChangedCommand._setOwner(mContain);
     }
     base._runInit();
 }
Example #2
0
 public override void _runInit()
 {
     PlatformSingleton platformSingleton_ = __singleton<PlatformSingleton>._instance();
     mCommand = platformSingleton_._findInterface<ICommand>(mCmdStr);
     if (null != mCommand)
     {
         IContain contain_ = this._getContain();
         mCommand._setOwner(contain_);
     }
     base._runInit();
 }
Example #3
0
 public void _runInit()
 {
     PlatformSingleton platformSingleton_ = __singleton<PlatformSingleton>._instance();
     mCommand = platformSingleton_._findInterface<ICommand>(mCmdStr);
     if (null != mCommand)
     {
         mCommand._setOwner(mTag);
     }
     foreach (ContextMenuItem i in mContextMenuItems)
     {
         i._setTag(mTag);
         i._runInit();
     }
 }
Example #4
0
 public void _runInit()
 {
     UpdateSingleton updateSingleton_ = __singleton<UpdateSingleton>._instance();
     updateSingleton_._registerUpdate(this);
     PlatformSingleton platformSingleton_ = __singleton<PlatformSingleton>._instance();
     mCommand = platformSingleton_._findInterface<ICommand>(mCmdStr);
     if (null != mCommand)
     {
         mCommand._setOwner(mContain);
     }
     foreach (MenuItem i in mMenuItems)
     {
         i._setContain(mContain);
         i._runInit();
     }
 }
Example #5
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();
        }
Example #6
0
 public override void _runInit()
 {
     PlatformSingleton platformSingleton_ = __singleton<PlatformSingleton>._instance();
     SideBarUrl sideBarUrl_ = platformSingleton_._findHeadstream<SideBarUrl>(mSideBarUrl);
     List<string> sideTabUrls_ = sideBarUrl_._sideTabUrls();
     foreach (string i in sideTabUrls_)
     {
         SideTab sideTab_ = platformSingleton_._findHeadstream<SideTab>(i);
         sideTab_._setSideBar(this);
         mSideTabs.Add(sideTab_);
     }
     foreach (SideTab i in mSideTabs)
     {
         i._runInit();
     }
     mInitCommand = platformSingleton_._findInterface<ICommand>(mInitCmd);
     if (null != mInitCommand)
     {
         mInitCommand._setOwner(mContain);
         mInitCommand._runCommand();
     }
     base._runInit();
 }
Example #7
0
 public override void _runInit()
 {
     PlatformSingleton platformSingleton_ = __singleton<PlatformSingleton>._instance();
     mInitCommand = platformSingleton_._findInterface<ICommand>(mInitCmd);
     if (null != mInitCommand)
     {
         mInitCommand._setOwner(mContain);
         mInitCommand._runCommand();
     }
     mLoadCommand = platformSingleton_._findInterface<ICommand>(mLoadCmd);
     if (null != mLoadCommand)
     {
         mLoadCommand._setOwner(mContain);
     }
     mItemActivateCommand = platformSingleton_._findInterface<ICommand>(mItemActivateCmd);
     if (null != mItemActivateCommand)
     {
         mItemActivateCommand._setOwner(mContain);
     }
     mSelectedIndexChangedCommand = platformSingleton_._findInterface<ICommand>(mSelectedIndexChangedCmd);
     if (null != mSelectedIndexChangedCommand)
     {
         mSelectedIndexChangedCommand._setOwner(mContain);
     }
     base._runInit();
 }
Example #8
0
 public override void _runInit()
 {
     PlatformSingleton platformSingleton_ = __singleton<PlatformSingleton>._instance();
     mInitCommand = platformSingleton_._findInterface<ICommand>(mInitCmd);
     if (null != mInitCommand)
     {
         mInitCommand._setOwner(this);
         mInitCommand._runCommand();
     }
     mLoadCommand = platformSingleton_._findInterface<ICommand>(mLoadCmd);
     if (null != mLoadCommand)
     {
         mLoadCommand._setOwner(this);
     }
     base._runInit();
 }
Example #9
0
 public override void _runInit()
 {
     if (null != mDBClickTabCmd)
     {
         PlatformSingleton platformSingleton_ = __singleton<PlatformSingleton>._instance();
         mDBClickTabCommand = platformSingleton_._findInterface<ICommand>(mDBClickTabCmd);
         if (null != mDBClickTabCommand)
         {
             mDBClickTabCommand._setOwner(this);
         }
     }
     foreach (KeyValuePair<string, DockPad> i in mDockPads)
     {
         DockPad dockPad_ = i.Value;
         dockPad_._setContain(this);
         dockPad_._runInit();
     }
     base._runInit();
 }