Пример #1
0
        //-------------------------------------------------------------------------

        private void uiChangelistFiles_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (uiChangelistFiles.SelectedItem == null)
            {
                return;
            }

            string path     = uiChangelistFiles.SelectedItem as string;
            int    revIndex = path.LastIndexOf('#') + 1;
            string revStr   = path.Substring(revIndex, path.Length - revIndex);
            int    rev      = 0;

            if (int.TryParse(revStr, out rev) == false)
            {
                return;
            }

            path = path.Remove(revIndex - 1);

            ReviewContentDlg dlg = new ReviewContentDlg(path, rev);

            dlg.ShowDialog(this);
        }
Пример #2
0
    //-------------------------------------------------------------------------

    private void uiChangelistFiles_SelectedIndexChanged( object sender, EventArgs e )
    {
      if( uiChangelistFiles.SelectedItem == null )
      {
        return;
      }

      string path = uiChangelistFiles.SelectedItem as string;
      int revIndex = path.LastIndexOf( '#' ) + 1;
      string revStr = path.Substring( revIndex, path.Length - revIndex );
      int rev = 0;

      if( int.TryParse( revStr, out rev ) == false )
      {
        return;
      }

      path = path.Remove( revIndex - 1 );

      ReviewContentDlg dlg = new ReviewContentDlg( path, rev );
      dlg.ShowDialog( this );
    }