Beispiel #1
0
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            CMDQuit = new Command(new Action(() => Quit(null, null)))
            {
                Caption = "Quit", Icon = new SvgPicture("#Crow.Icons.exit-symbol.svg")
            };
            CMDViewGTExp = new Command(new Action(() => loadWindow("#CrowIDE.ui.GTreeExplorer.crow")))
            {
                Caption = "Graphic Tree Explorer"
            };
            CMDViewProps = new Command(new Action(() => loadWindow("#CrowIDE.ui.MemberView.crow")))
            {
                Caption = "Properties View"
            };
            CMDViewProj = new Command(new Action(() => loadWindow("#CrowIDE.ui.CSProjExplorer.crow")))
            {
                Caption = "Project Explorer"
            };

            this.KeyDown += CrowIDE_KeyDown;

            //this.CrowInterface.LoadInterface ("#CrowIDE.ui.imlEditor.crow").DataSource = this;
            //GraphicObject go = this.CrowInterface.LoadInterface (@"ui/test.crow");
            GraphicObject go = this.CrowInterface.LoadInterface(@"#CrowIDE.ui.imlEditor.crow");

            imlVE         = go.FindByName("crowContainer") as ImlVisualEditor;
            go.DataSource = this;
        }
Beispiel #2
0
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            GraphicObject g = Load("#Tests.ui.showcase.crow");

            g.DataSource  = this;
            crowContainer = g.FindByName("CrowContainer") as Container;
            //I set an empty object as datasource at this level to force update when new
            //widgets are added to the interface
            crowContainer.DataSource = new object();
        }
Beispiel #3
0
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            initCommands();

            this.KeyDown += CrowIDE_KeyDown;

            //this.CrowInterface.LoadInterface ("#Crow.Coding.ui.imlEditor.crow").DataSource = this;
            //GraphicObject go = this.CrowInterface.LoadInterface (@"ui/test.crow");
            GraphicObject go = AddWidget(@"#Crow.Coding.ui.CrowIDE.crow");

            go.DataSource = this;

            MainIFace = ifaceControl[0].CrowInterface;

            mainDock = go.FindByName("mainDock") as DockStack;

            if (ReopenLastSolution && !string.IsNullOrEmpty(LastOpenSolution))
            {
                CurrentSolution = Solution.LoadSolution(LastOpenSolution);
                //lock(MainIFace.UpdateMutex)
                CurrentSolution.ReopenItemsSavedInUserConfig();
            }

            instFileDlg = Instantiator.CreateFromImlFragment
                              (MainIFace, "<FileDialog Caption='Open File' CurrentDirectory='{²CurrentDirectory}' SearchPattern='*.sln' OkClicked='onFileOpen'/>");

            DockWindow dw = loadWindow("#Crow.Coding.ui.DockWindows.winEditor.crow", this) as DockWindow;

            dw.DockingPosition = Alignment.Center;
            dw.Dock(mainDock);
            dw = loadWindow("#Crow.Coding.ui.DockWindows.winSolution.crow", this) as DockWindow;
            dw.DockingPosition = Alignment.Right;
            dw.Dock(mainDock);
            dw = loadWindow("#Crow.Coding.ui.DockWindows.winToolbox.crow", this) as DockWindow;
            dw.DockingPosition = Alignment.Left;
            dw.Dock(mainDock);
        }
		protected override void OnLoad (EventArgs e)
		{
			base.OnLoad (e);
			g = LoadInterface("Interfaces/test0.goml");
			l = g.FindByName ("labCpt") as Label;
		}
 protected override void OnLoad(EventArgs e)
 {
     base.OnLoad(e);
     g = LoadInterface("Interfaces/test0.goml");
     l = g.FindByName("labCpt") as Label;
 }