Ejemplo n.º 1
0
        void ViewDestroy()
        {
            chkSlope = null;
            chkWater = null;
            chkLight = null;

            bSetSlope = null;
            bSetWater = null;
            bSetLight = null;

            View.Dispose();
        }
Ejemplo n.º 2
0
        void ViewInit()
        {
            //Create view here
            View     = MyClasses.MetaViewWrappers.ViewSystemSelector.CreateViewResource(Host, "SkunkVision_CSharp.MainView.xml");
            chkSlope = (MyClasses.MetaViewWrappers.ICheckBox)View["chkSlope"];
            chkWater = (MyClasses.MetaViewWrappers.ICheckBox)View["chkWater"];
            chkLight = (MyClasses.MetaViewWrappers.ICheckBox)View["chkLight"];

            chkSlope.Checked = Render.SlopeEnabled;
            chkWater.Checked = Render.WaterEnabled;
            chkLight.Checked = Render.LightEnabled;

            chkSlope.Change += new EventHandler <MyClasses.MetaViewWrappers.MVCheckBoxChangeEventArgs>(chkSlope_Change);
            chkWater.Change += new EventHandler <MyClasses.MetaViewWrappers.MVCheckBoxChangeEventArgs>(chkWater_Change);
            chkLight.Change += new EventHandler <MyClasses.MetaViewWrappers.MVCheckBoxChangeEventArgs>(chkLight_Change);

            bSetSlope = (MyClasses.MetaViewWrappers.IButton)View["bSetSlope"];
            bSetWater = (MyClasses.MetaViewWrappers.IButton)View["bSetWater"];
            bSetLight = (MyClasses.MetaViewWrappers.IButton)View["bSetLight"];

            bSetSlope.Click += new EventHandler <MyClasses.MetaViewWrappers.MVControlEventArgs>(bSetSlope_Click);
            bSetWater.Click += new EventHandler <MyClasses.MetaViewWrappers.MVControlEventArgs>(bSetWater_Click);
            bSetLight.Click += new EventHandler <MyClasses.MetaViewWrappers.MVControlEventArgs>(bSetLight_Click);
        }