示例#1
0
 public override bool Action(string action)
 {
     bool result = base.Action(action);
     if (result)
     {
         if (action == ACTION_START)
         {
             using (GoogleDirectionsForm dlg = new GoogleDirectionsForm(this, Core))
             {
                 dlg.ShowDialog();
             }
         }
     }
     return result;
 }
示例#2
0
        public override bool Action(string action)
        {
            bool result = base.Action(action);

            if (result)
            {
                if (action == ACTION_START)
                {
                    using (GoogleDirectionsForm dlg = new GoogleDirectionsForm(this, Core))
                    {
                        dlg.ShowDialog();
                    }
                }
            }
            return(result);
        }