Example #1
0
 void OnOkayCommand(object sender)
 {
     if (Util.IsValidGitDirectory(Directory) == false)
     {
         if (UIService.AskAndGitInit(Directory) == false)
         {
             return;
         }
     }
     new_tab_result_(Directory);
 }
Example #2
0
        private void Grid_Drop(object sender, System.Windows.DragEventArgs e)
        {
            e.Handled = true;
            string[] paths = (string[])e.Data.GetData(System.Windows.DataFormats.FileDrop);

            if (paths.Length != 1)
            {
                UIService.ShowMessage("Please drop one directory only");
                return;
            }
            string repository_path = paths[0];

            if (Util.IsValidGitDirectory(repository_path) == false)
            {
                if (UIService.AskAndGitInit(repository_path) == false)
                {
                    return;
                }
            }
            new_tab_result_(repository_path);
        }