コード例 #1
0
        public ShowModalResult ShowModal(SwitchBoard sb)
        {
            throw new NotImplementedException();

            //string buff;
            //string buff2;
            //String buff1;

            //if(sb) {
            //  m_name.Value = (sb._name);
            //  m_path.Value = (sb._fname);
            //}

            //Centre();
            //bool oldIgnore = Globals.traindir.m_ignoreTimer;
            //Globals.traindir.m_ignoreTimer = true;
            //m_name.SetFocus();
            //ShowModalResult res = base.ShowModal();
            //Globals.traindir.m_ignoreTimer = oldIgnore;

            //buff = string.Copy(m_name.Value);
            //buff2 = string.Copy(m_path.Value);

            //if(res == wx.MenuIDs.wxID_RESET) {
            //  buff1 = String.Format(wxPorting.T("sb-edit -d %s"), buff2);
            //  Globals.do_command(buff1, false);
            //  return wxID_OK;
            //}
            //if(res != wxID_OK)
            //  return wxID_CANCEL;

            //buff1 = String.Format(wxPorting.T("sb-edit -a %s %s"), buff2, buff);
            //Globals.do_command(buff1, false);
            //return wxID_OK;
        }
コード例 #2
0
        public static void RemoveSwitchBoard(SwitchBoard sb)
        {
            //SwitchBoard* old = 0;
            //SwitchBoard* s;

            //for(s = switchBoards; s && s != sb; s = s._next)
            //  old = s;
            //if(s) {
            //  if(!old)
            //    switchBoards = s._next;
            //  else
            //    old._next = s._next;
            //}
            //if(sb)
            //  Globals.delete(sb);
        }