Пример #1
0
        /// <summary>
        /// the spreadsheet GUI that takes in a string file path and fills
        /// the spreadsheet GUI with the contents of the .sprd file.
        /// </summary>
        /// <param name="fileName">Pathname is null if no specified file.</param>
        public SpreadSheetForm(bool showSSPanel, string _filename, string _docID, SSController controller)
        {
            //The default spreadsheet name.
            InitializeComponent();

            this.Text       = filename;
            prevCol         = -1;
            prevRow         = -1;
            prevName        = "A1";
            unValidCellName = "A1";
            unValidContent  = "";

            this.controller = controller;
            filename        = _filename;
            docID           = _docID;

            if (showSSPanel)
            {
                showSpreadsheet();
            }
            else
            {
                this.newToolStripMenuItem.Enabled  = false;
                this.openToolStripMenuItem.Enabled = false;
                controller.SetInitSpreadsheetForm(this);
            }

            relativeHelpPath = Application.StartupPath + "..\\..\\..\\..\\Resources\\HelpMessages\\";
        }
Пример #2
0
 public OpenForm(SSController _c)
 {
     controller = _c;
     InitializeComponent();
     this.Visible = true;
 }
Пример #3
0
 public void SetClientController(SSController c)
 {
     ss_controller = c;
 }