Ejemplo n.º 1
0
        private ToolStripMenuItem CreateOpenPathMenuItem(ToolStripMenuItem toolStripMenuItem, string menuType, string targetDirectory)
        {
            var openPath         = new OpenPath();
            var openPathMenuItem = openPath.CreateToolStripMenuItem(menuType, targetDirectory);

            toolStripMenuItem.DropDownItems.Add(openPathMenuItem);

            return(toolStripMenuItem);
        }
Ejemplo n.º 2
0
        public void button_openPath()
        {
            OpenPath op   = new OpenPath();
            string   path = op.open();

            if (path != "")
            {
                label_openPath.Content = path;
            }
        }
Ejemplo n.º 3
0
Archivo: Export.cs Proyecto: zhna42/TDK
        public void button_openPath()
        {
            popup.displayBlock("Loading file ...");
            OpenPath op   = new OpenPath();
            string   path = op.open();

            if (path != "")
            {
                label_pathOpen.Content = path;
                files = new LoadFiles();
                files.load(label_pathOpen.Content.ToString());
                editFiles      = new EditFiles();
                editFiles.main = files.main;
                editFiles.startEdit();
                files.copy();
                list_name_main.ItemsSource = files.mainCopy;
                list_name_main.Items.Refresh();
                //подготовим комбобоксы взяв инфу из настроек
                List <string> cbeVersionList = new List <string>()
                {
                    "01", "02", "03", "04", "05", "06", "07", "09", "10"
                };
                ComboBoxElements cbeVersion = new ComboBoxElements()
                {
                    bindComboSearch = cbeVersionList
                };
                comboBox_name_version.DataContext = cbeVersion;

                List <string> cbeCategoryList = new List <string>();
                cbeCategoryList.Add("");
                foreach (DataSettings ds in settings.editSettings.setElementsListView.data)
                {
                    cbeCategoryList.Add(ds.name);
                }
                ComboBoxElements cbeCategory = new ComboBoxElements()
                {
                    bindComboSearch = cbeCategoryList
                };
                comboBox_name_category.DataContext = cbeCategory;

                //комбо для поиска
                List <string> cbeSList = new List <string>()
                {
                    "Artist", "Title", "Album", "Genre", "Album Artist", "Year"
                };
                ComboBoxElements cbeS = new ComboBoxElements()
                {
                    bindComboSearch = cbeSList
                };
                comboBox_name_search.DataContext = cbeS;
            }
            popup.displayNan();
        }
Ejemplo n.º 4
0
        private void menuSaveAs_Click(object sender, EventArgs e)
        {
            if (ActiveContent != null)
            {
                saveFile.FileName = ActiveViewContent.TabPageText.Replace("*", string.Empty) + ".qs";

                if (saveFile.ShowDialog() == DialogResult.OK)
                {
                    OpenPath = saveFile.FileName;
                    string[] filename = OpenPath.Split('\\');
                    (ActiveViewContent as FormContent).SaveAs(OpenPath, filename[filename.Length - 1].Substring(0, filename[filename.Length - 1].IndexOf('.')));
                }
            }
        }