예제 #1
0
    /// <summary>
    /// 初期化
    /// </summary>
    void init()
    {
        if (this.WindowTitleListQ == null)
        {
            WindowTitleListQ = new Queue <InfoWindow>();
        }
        if (this.WindowImageListQ == null)
        {
            WindowImageListQ = new Queue <ImageWindow>();
        }
        instance = this;

        //なうセンテンスカウント 初期化
        initNowSentenceCount();

        //ニュースログ取得
        if (CanvasLog == null)
        {
            //NULLなら何もしない
        }
        else
        {
            NewsLog = CanvasLog.GetComponent <CtrlLog>();
        }
    }
예제 #2
0
        public FrmInitial()
        {
            _ctrlMap    = GlobalVariables.CMap;
            _ctrlPlayer = GlobalVariables.CPlayer;
            _ctrlLog    = GlobalVariables.CLog;

            InitializeComponent();
            BindingControls();
        }
예제 #3
0
        /// <summary>
        /// Initializes a new instance of the class.
        /// </summary>
        public FrmWirenBoardWizard(IAdminContext adminContext, ScadaProject project, RecentSelection recentSelection)
            : this()
        {
            this.adminContext = adminContext ?? throw new ArgumentNullException(nameof(adminContext));
            this.project      = project ?? throw new ArgumentNullException(nameof(project));

            ctrlLineSelect = new CtrlLineSelect(adminContext, project, recentSelection);
            ctrlLog        = new CtrlLog();
            ctrlDeviceTree = new CtrlDeviceTree();
            ctrlEntityID   = new CtrlEntityID(adminContext, project, recentSelection);
            logHelper      = new RichTextBoxHelper(ctrlLog.RichTextBox);
            AddUserControls();

            step          = Step.SelectLine;
            topicReader   = null;
            configBuilder = null;
        }