Пример #1
0
        public ImagesManager(Form1 parent = null, string focus = null)
        {
            this.parent = parent;
            this.focus  = focus;
            InitializeComponent();
            if (parent == null)
            {
                main_label.Text = "Gestion des Images"; SelectBtn.Hide();
            }
            else
            {
                add_btn.Hide();
                main_label.Text = "Selection icone";
            }
            del_btn.Hide();

            info_listBox.Items.Clear();
            loadImages();
            tabControler.SelectedIndexChanged += TabControler_SelectedIndexChanged;
        }
Пример #2
0
        public SoundsManager(Form1 parent = null)
        {
            this.parent = parent;
            player      = new Player(this);
            InitializeComponent();
            if (parent == null)
            {
                main_label.Text = "Gestion des Sonds"; SelectBtn.Hide();
            }
            else
            {
                add_btn.Hide();
                main_label.Text = "Selection sond";
            }
            del_btn.Hide();

            info_listBox.Items.Clear();
            loadSounds();
            tabControler.SelectedIndexChanged += TabControler_SelectedIndexChanged;
            this.FormClosed += SoundsManager_FormClosed;
        }