Ejemplo n.º 1
0
        private void Start()
        {
            ConfigBuilder configBuilder = new ConfigBuilder();

            configBuilder.StartConfig();
            Colomns         = configBuilder.Colomns;
            ColorConditions = configBuilder.ColorConditions;
            Filters         = configBuilder.Filters;

            FilterApplication();
        }
Ejemplo n.º 2
0
        private void сохранитьКонфигурациюToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ConfigBuilder cb = new ConfigBuilder();

            cb.Colomns         = Colomns;
            cb.Filters         = Filters;
            cb.ColorConditions = ColorConditions;

            SaveFileDialog SFD = new SaveFileDialog();

            SFD.Filter           = "Config Files|*.config";
            SFD.Title            = "Сохранение файла с текущими настройками";
            SFD.InitialDirectory = AppDomain.CurrentDomain.BaseDirectory + @"config";
            if (SFD.ShowDialog() == DialogResult.OK)
            {
                cb.ConfigWriter(SFD.FileName);
            }
            SFD.Dispose();
        }
Ejemplo n.º 3
0
        private void выбратьНастройкиИзСохраненныхToolStripMenuItem_Click(object sender, EventArgs e)
        {
            OpenFileDialog OFD = new OpenFileDialog();

            OFD.Filter           = "Config Files|*.config";
            OFD.Title            = "Открытие файла с сохраненными настройками";
            OFD.InitialDirectory = AppDomain.CurrentDomain.BaseDirectory + @"config";
            if (OFD.ShowDialog() == DialogResult.OK)
            {
                ConfigBuilder cb = new ConfigBuilder();
                cb.ConfigReader(OFD.FileName);
                Colomns         = cb.Colomns;
                ColorConditions = cb.ColorConditions;
                Filters         = cb.Filters;
                cb.ChangeStartPath(OFD.FileName);
                toQuery = new List <string>();

                FilterApplication();
            }
        }