Пример #1
0
        private void btnOk_Click(object sender, EventArgs e)
        {
            var repls = new List <Tuple <string, string> >();

            configSelectionFrame1.Root.GetReplacePaths(repls);
            configSelectionFrame1.Root.CopyCheckedTo(m_dstFs, true, repls);
            Close();

            // refresh all what we can refresh...
            HTree.CallRefreshRoot();
            HFavorites.CallChanged();

            StdDialog.ShowInfo("s_config_imported");

            //if (MessageBox.Show("s_conf_imported_restart_recomended_restart_now", "DatAdmin", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2) == DialogResult.Yes)
            //{
            //    MainWindow.Instance.CloseMainWindow();
            //    Core.ExecuteAfterFinalize = Core.FullExeName;
            //}
        }
Пример #2
0
 public static void NotifyChanged()
 {
     HFavorites.CallChanged();
 }