public mainForm()
        {
            InitializeComponent();



            bmap     = new Bitmap(picture.Width, picture.Height);
            graphics = Graphics.FromImage(bmap);

            RefreshPlugins();

            RefreshPluginsFactory();

            try
            {
                XDocument xdoc  = XDocument.Load("configuration.xml");
                string    theme = "-1";
                string    lang  = "-1";
                foreach (XElement configElement in xdoc.Element("configurations").Elements("config"))
                {
                    lang  = configElement.Element("language").Value;
                    theme = configElement.Element("theme").Value;
                }

                ts_cmb.SelectedIndex     = Convert.ToInt32(lang, 10);
                cmb_themes.SelectedIndex = currentTheme = Convert.ToInt32(theme, 10);
            }
            catch (Exception ex)
            {
                MessageBox.Show(message, title_mess, MessageBoxButtons.OK, MessageBoxIcon.Warning);
            }
            configIsChanged = false;

            CustomFigure.OpenCustomFigures(cmb_custom_figures, allFabrics);
        }
Exemple #2
0
 public mainForm()
 {
     InitializeComponent();
     bmap     = new Bitmap(picture.Width, picture.Height);
     graphics = Graphics.FromImage(bmap);
     CustomFigure.OpenCustomFigures(cmb_custom_figures, allFabrics);
 }