Esempio n. 1
0
        public EcoLevelWindow(EconomyWindow eco, string name = "", int price = 0, string x = "", string y = "", string z = "", string type = "", bool edit = false)
        {
            this.edit       = edit;
            this.eco        = eco;
            lvledit.name    = name;
            lvledit.oldname = name;
            lvledit.price   = price;
            lvledit.x       = x;
            lvledit.y       = y;
            lvledit.z       = z;
            lvledit.type    = type;

            InitializeComponent();

            SystemEvents.UserPreferenceChanged += new UserPreferenceChangedEventHandler(SystemEvents_UserPreferenceChanged);
            this.Font = SystemFonts.IconTitleFont;
        }
        public EcoLevelWindow(EconomyWindow eco, string name = "", int price = 0, string x = "", string y = "", string z = "", string type = "", bool edit = false)
        {
            this.edit = edit;
            this.eco = eco;
            lvledit.name = name;
            lvledit.oldname = name;
            lvledit.price = price;
            lvledit.x = x;
            lvledit.y = y;
            lvledit.z = z;
            lvledit.type = type;

            InitializeComponent();

            SystemEvents.UserPreferenceChanged += new UserPreferenceChangedEventHandler(SystemEvents_UserPreferenceChanged);
            this.Font = SystemFonts.IconTitleFont;
        }