Пример #1
0
        private void SubmitPriorityButtonClicked(object sender, RoutedEventArgs e)
        {
            MessageBoxManager msgbox = new MessageBoxManager();

            if (!File.Exists("PriorityFiles.txt"))
            {
                File.CreateText("PriorityFiles.txt");
            }

            StreamWriter writer = new StreamWriter("PriorityFiles.txt");

            for (int i = 0; i < priorityListBox.Items.Count; i++)
            {
                writer.WriteLine((string)priorityListBox.Items[i]);
            }
            writer.Close();
            //if(Controller.cmb ==0)
            //{
            //    //Properties.Settings.Default.LangueCode = "fr-FR";
            //    MessageBoxManager.OK = "OK";
            //    MessageBoxManager.Register();
            //    MessageBox.Show("Fichier validé!","EasySave", MessageBoxButtons.OK);
            //    MessageBoxManager.Unregister();
            //}
            //else
            // {
            MessageBoxManager.OK = "OK";
            MessageBoxManager.Register();
            MessageBox.Show("Ok!", "EasySave", MessageBoxButtons.OK);
            MessageBoxManager.Unregister();
            //}
        }
        private void SubmitSoftwarePathButtonClicked(object sender, RoutedEventArgs e)
        {
            EasySaveG5Graphic.MessageBoxManager msgbox = new EasySaveG5Graphic.MessageBoxManager();
            if (!File.Exists("EnterpriseSoftware.txt"))
            {
                File.CreateText("EnterpriseSoftware.txt");
            }
            StreamWriter writer = new StreamWriter("EnterpriseSoftware.txt");

            writer.WriteLine((string)EnterpriseSoftwarePathTextBox.Text);
            writer.Close();
            MessageBoxManager.OK = "OK";
            MessageBoxManager.Register();
            MessageBox.Show("Ok!", "EasySave", MessageBoxButtons.OK);
            MessageBoxManager.Unregister();
        }