Esempio n. 1
0
        public void ChipSelectorClicked(ChipSelector cs)
        {
            MapTabPage mtp = (MapTabPage)this.tabControl1.SelectedTab;

            if (cs == this.mapchip_selector)
            {
                mtp.selecting_type = MapTabPage.SelectingType.Mapchip;
            }
            else
            {
                mtp.selecting_type = MapTabPage.SelectingType.Object;
            }
        }
Esempio n. 2
0
        public MainForm()
        {
            cursor_size = 64;
            mainform    = this;
            InitializeComponent();
            mapchip_selector = new ChipSelector(Constants.MapchipImageFileName);
            //mapchip_selector.Parent = this;
            mapchip_selector.Show();
            object_selector = new ChipSelector(Constants.ObjectImageFileName, 32);
            //object_selector.Parent = this;
            object_selector.Show();

            //this.PreviewKeyDown += this.onKeyDown;
            this.KeyDown             += this.onKeyDown;
            this.tabControl1.KeyDown += this.onKeyDown;
            this.tabControl1.Controls.Add(new MapTabPage("noname"));
            this.tabControl1.Anchor = AnchorStyles.Bottom
                                      | AnchorStyles.Right | AnchorStyles.Top | AnchorStyles.Left;
            this.tabControl1.DrawMode  = TabDrawMode.OwnerDrawFixed;
            this.tabControl1.DrawItem += this.DrawCloseTab;
            //this.tabControl1.Controls.Add(new AddTabPage());
            clipboard = new ClipBoard();
            clipboard.Show();
        }