public NewSiteWizard(Settings.Setting _setting, string _siteName)
 {
     InitializeComponent();
     siteName = _siteName;
     setting = _setting;
     LoadData();
 }
Example #2
0
 public static void SerializeToXML(Settings settings)
 {
     XmlSerializer serializer = new XmlSerializer(typeof(Settings));
     StreamWriter writer = new StreamWriter(Application.StartupPath + "\\settings.xml");
     serializer.Serialize(writer, settings);
     writer.Close();
     serializer = null;
     writer.Dispose();
     writer = null;
     GC.Collect();
 }
Example #3
0
 public Form1()
 {
     Form2 = new Settings();
     InitializeComponent();
 }
Example #4
0
        private void Form1_Load(object sender, EventArgs e)
        {
            listBox1.Items.Clear();

            settings = DeserializeFromXML();
            foreach (var movie in settings.Movies)
            {
                listBox1.Items.Add(movie.Title);
            }

            txtEmail.Text = settings.UserInfo.Email;
            txtPassword.Text = settings.UserInfo.Password;
        }
 public FrmConvertHtml(Settings.Setting _setting)
 {
     InitializeComponent();
     setting = _setting;
     LoadList();
 }
Example #6
0
 public FrmLogin(Settings.Setting _setting)
 {
     InitializeComponent();
     setting = _setting;
 }
Example #7
0
 public void ShowSettingsDialog()
 {
     Settings form = new Settings();
     form.FormClosed += form_FormClosed;
     form.Show();
 }