Esempio n. 1
0
        private void Lable_MouseDown(object sender, MouseButtonEventArgs e)
        {
            var dialog = new System.Windows.Forms.FolderBrowserDialog();

            var result = dialog.ShowDialog();

            if (result == System.Windows.Forms.DialogResult.OK)
            {
                Label lable = sender as Label;
                if (lable != null)
                {
                    var beforeContent = lable.Content;
                    lable.Content = dialog.SelectedPath;

                    EzConfig.Save((string)beforeContent, (string)lable.Content);
                }
            }
        }
Esempio n. 2
0
 private void MetroWindow_Loaded(object sender, RoutedEventArgs e)
 {
     EzConfig.Load();
 }