Exemplo n.º 1
0
 private void Save_Description_Format_Click(object sender, RoutedEventArgs e)
 {
     Save_Description_Format.IsEnabled = false;
     ConfigContentFormat.SaveContent();
     ConfigContentFormat.Packaging();
     if (Save_Location_Excel_State != null)
     {
         Save_Description_Format_State.Visibility = Visibility.Visible;
     }
 }
Exemplo n.º 2
0
 private void Save_Title_Format_Click(object sender, RoutedEventArgs e)
 {
     Save_Title_Format.IsEnabled = false;
     ConfigContentFormat.Title   = Default_Title.Text;
     ConfigContentFormat.SaveTitle();
     ConfigContentFormat.Packaging();
     if (Save_Title_Format_State != null)
     {
         Save_Title_Format_State.Visibility = Visibility.Visible;
     }
 }
Exemplo n.º 3
0
        private void InitConfiguration()
        {
            //Init ExcelFormat
            if (!File.Exists(System.IO.Path.Combine(WorkPath.ConfigrationPath, WorkPath.ConfigExcelFormatSaveFilePath)))
            {
                ConfigExcelFormat.TitleColumn   = 'A';
                ConfigExcelFormat.ContentColumn = 'B';
                ConfigExcelFormat.Save();
            }
            else
            {
                ConfigExcelFormat.Load();
            }

            //Init ContentFormat
            if (!File.Exists(System.IO.Path.Combine(WorkPath.ConfigrationPath, WorkPath.ConfigContentFormatSaveFilePath)))
            {
                ConfigContentFormat.Packaging();
            }
            else
            {
                ConfigContentFormat.LoadTitle();
                ConfigContentFormat.LoadContent();
                ConfigContentFormat.Packaging();
            }

            //Init LogPath
            if (!File.Exists(System.IO.Path.Combine(WorkPath.ConfigrationPath, WorkPath.ConfigLogSaveFilePath)))
            {
                ConfigLogSave.logPaths = new System.Collections.ObjectModel.ObservableCollection <LogPathStruct>();
                ConfigLogSave.logPaths.Add(new LogPathStruct()
                {
                    Name = "Name", SourcePath = "SourcePath", TargetPath = "TargetPath"
                });
            }
            else
            {
                ConfigLogSave.Load();
            }
        }